main: no need to check nullity on an array

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Nikos Mavrogiannopoulos
2020-03-04 12:14:54 +01:00
parent e70573d9fc
commit 31719b2cec

View File

@@ -1144,7 +1144,7 @@ static void listen_watcher_cb (EV_P_ ev_io *w, int revents)
human_addr2((const struct sockaddr *)&ws->our_addr, ws->our_addr_len, ws->our_ip_str, sizeof(ws->our_ip_str), 0);
hmac_components[0].data = ws->remote_ip_str;
hmac_components[0].length = ws->remote_ip_str ? strlen(ws->remote_ip_str) : 0;
hmac_components[0].length = strlen(ws->remote_ip_str);
hmac_components[1].data = ws->our_ip_str;
hmac_components[1].length = ws->our_ip_str ? strlen(ws->our_ip_str) : 0;
hmac_components[2].data = &ws->session_start_time;