commit | 686aa3181210cb27bbb5130c741927ee28c980ed | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Jan 21 15:58:18 2016 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Jan 21 15:58:18 2016 +0100 |
tree | d07bfe71024485f7f683b8e70683a2375f3302b0 | |
parent | 94e7c2d7b6b13e155e7b403ff0003d115a599de4 [diff] [blame] |
server session BUGFIX check on the wrong variable
diff --git a/src/session_server.c b/src/session_server.c index 89b52ad..11a54bf 100644 --- a/src/session_server.c +++ b/src/session_server.c
@@ -881,7 +881,7 @@ sock = ret; *session = calloc(1, sizeof **session); - if (!session) { + if (!(*session)) { ERRMEM; close(sock); return -1;