From b98218c84be222ee36d659528c42efbc8e359e6f Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 19 Oct 2004 07:41:19 +0000 Subject: r3060: Replace magic number with a C99 constant. (This used to be commit b572be00b3432317169c6fa6df3f91a0c8f23fcb) --- source4/smb_server/conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/smb_server/conn.c b/source4/smb_server/conn.c index e85e050eeb..3cff83055d 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, 0x10000); + i = idr_get_new(smb_conn->tree.idtree_tid, tcon, UINT16_MAX + 1); if (i == -1) { DEBUG(1,("ERROR! Out of connection structures\n")); return NULL; -- cgit