diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-19 12:06:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:01:55 -0500 |
commit | 72093ce62f1e09db86452720fe8280ad66824cde (patch) | |
tree | 62aa8cb4fc470254be4283efb20669858ab21189 /source4/smb_server | |
parent | 343545a8836d1665bb3c41974d743b03fd0b6446 (diff) | |
download | samba-72093ce62f1e09db86452720fe8280ad66824cde.tar.gz samba-72093ce62f1e09db86452720fe8280ad66824cde.tar.bz2 samba-72093ce62f1e09db86452720fe8280ad66824cde.zip |
r3064: - use UINT8_MAX and UINT16_MAX instead of hex values for idr_get_new() limits
- change idr_get_new() to use > instead of >= in the limit check
(This used to be commit 834b09929bcb8aabdd151b7c2306001497cabdb4)
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/conn.c | 2 |
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; |