Jelajahi Sumber

Fix for checking if a session is logged in.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
Tim Oliver 9 tahun lalu
induk
melakukan
56bb2c8209
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/smb_session.c

+ 1 - 1
src/smb_session.c

@@ -313,7 +313,7 @@ int             smb_session_is_guest(smb_session *s)
     assert(s != NULL);
 
     // We're not logged in yet.
-    if (s->logged)
+    if (s->logged != true)
         return -1;
 
     // We're logged in as guest