From 69d1f9b83684172ddb8639dbf64ce7cb2743e450 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 5 Jun 2012 16:01:56 +0200 Subject: 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 --- source3/smbd/conn_idle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } } -- cgit