commit | f22d5ff6c9005d73bd22a1edb8d76843af57a88e | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Wed Apr 15 11:10:27 2020 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Apr 15 11:10:27 2020 +0200 |
tree | 1ec1e22d47e2ae0c6576b478e3eeae9f1ca24785 | |
parent | 316c9636b946d5a60d3f091d4af3c7a1b4b98629 [diff] [blame] |
server session CHANGE do not use bzero ... as it is considered deprecated on some platforms. Fixes #221
diff --git a/src/session_server.c b/src/session_server.c index 38f2819..763fcf4 100644 --- a/src/session_server.c +++ b/src/session_server.c
@@ -228,7 +228,7 @@ goto fail; } - bzero(&saddr, sizeof(struct sockaddr_storage)); + memset(&saddr, 0, sizeof(struct sockaddr_storage)); if (is_ipv4) { saddr4 = (struct sockaddr_in *)&saddr;