mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
main: no need to check nullity on an array
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user