summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/conn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smb_server/conn.c b/source4/smb_server/conn.c
index 3cff83055d..cdfd3a0bcd 100644
--- a/source4/smb_server/conn.c
+++ b/source4/smb_server/conn.c
@@ -59,7 +59,7 @@ struct smbsrv_tcon *conn_new(struct smbsrv_connection *smb_conn)
tcon = talloc_zero_p(smb_conn, struct smbsrv_tcon);
if (!tcon) return NULL;
- i = idr_get_new(smb_conn->tree.idtree_tid, tcon, UINT16_MAX + 1);
+ i = idr_get_new(smb_conn->tree.idtree_tid, tcon, UINT16_MAX);
if (i == -1) {
DEBUG(1,("ERROR! Out of connection structures\n"));
return NULL;