summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-10-19 07:41:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:01:55 -0500
commitb98218c84be222ee36d659528c42efbc8e359e6f (patch)
tree44661be4f72a38df5912edfeda12a2ef87a44551
parent24bba442bcc40dd4191e4040d76e0fd7e9e98f1b (diff)
downloadsamba-b98218c84be222ee36d659528c42efbc8e359e6f.tar.gz
samba-b98218c84be222ee36d659528c42efbc8e359e6f.tar.bz2
samba-b98218c84be222ee36d659528c42efbc8e359e6f.zip
r3060: Replace magic number with a C99 constant.
(This used to be commit b572be00b3432317169c6fa6df3f91a0c8f23fcb)
-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 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;