s3:smbd: use UID_FIELD_INVALID (0) instead of (uint16)-1 when calling close_cnum()
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Jun 2012 14:01:56 +0000 (16:01 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 6 Jun 2012 08:18:41 +0000 (10:18 +0200)
The only thing that's important is that the value is invalid.

metze

source3/smbd/conn_idle.c

index 96b76ee3f868af1d0044a3b3b50cffd7758fac45..4dfa4097c31ff3dbc4261db1c91fd82a3b728d61 100644 (file)
@@ -154,7 +154,7 @@ void conn_force_tdis(struct smbd_server_connection *sconn, const char *sharename
                        if (strequal(lp_servicename(SNUM(conn)), sharename)) {
                                DEBUG(1,("Forcing close of share %s cnum=%d\n",
                                        sharename, conn->cnum));
-                               close_cnum(conn, (uint16)-1);
+                               close_cnum(conn, UID_FIELD_INVALID);
                        }
                }
        }