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;