summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-05 16:01:56 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-06 10:18:41 +0200
commit69d1f9b83684172ddb8639dbf64ce7cb2743e450 (patch)
tree1a2bfb3a7396ba79a355f3b7f42935cf0e594f4d
parent2a9a95e673f23ed31ca186c2701b0ec816e370c7 (diff)
downloadsamba-69d1f9b83684172ddb8639dbf64ce7cb2743e450.tar.gz
samba-69d1f9b83684172ddb8639dbf64ce7cb2743e450.tar.bz2
samba-69d1f9b83684172ddb8639dbf64ce7cb2743e450.zip
s3:smbd: use UID_FIELD_INVALID (0) instead of (uint16)-1 when calling close_cnum()
The only thing that's important is that the value is invalid. metze
-rw-r--r--source3/smbd/conn_idle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/conn_idle.c b/source3/smbd/conn_idle.c
index 96b76ee3f8..4dfa4097c3 100644
--- a/source3/smbd/conn_idle.c
+++ b/source3/smbd/conn_idle.c
@@ -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);
}
}
}