From: Stefan Metzmacher Date: Tue, 5 Jun 2012 14:01:56 +0000 (+0200) Subject: s3:smbd: use UID_FIELD_INVALID (0) instead of (uint16)-1 when calling close_cnum() X-Git-Tag: tevent-0.9.16~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=69d1f9b83684172ddb8639dbf64ce7cb2743e450;p=thirdparty%2Fsamba.git 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 --- diff --git a/source3/smbd/conn_idle.c b/source3/smbd/conn_idle.c index 96b76ee3f86..4dfa4097c31 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); } } }