svn commit: samba r24964 - in branches/SAMBA_3_0_25/source/smbd: .
idra at samba.org
idra at samba.org
Wed Sep 5 12:41:15 GMT 2007
Author: idra
Date: 2007-09-05 12:41:13 +0000 (Wed, 05 Sep 2007)
New Revision: 24964
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24964
Log:
ports cant be greater then 65535, ignore anything above
Modified:
branches/SAMBA_3_0_25/source/smbd/server.c
Changeset:
Modified: branches/SAMBA_3_0_25/source/smbd/server.c
===================================================================
--- branches/SAMBA_3_0_25/source/smbd/server.c 2007-09-05 12:40:15 UTC (rev 24963)
+++ branches/SAMBA_3_0_25/source/smbd/server.c 2007-09-05 12:41:13 UTC (rev 24964)
@@ -363,7 +363,7 @@
for (ptr=ports; next_token(&ptr, tok, " \t,", sizeof(tok)); ) {
unsigned port = atoi(tok);
- if (port == 0) {
+ if (port == 0 || port > 0xffff) {
continue;
}
s = fd_listenset[num_sockets] = open_socket_in(SOCK_STREAM, port, 0, ifip->s_addr, True);
@@ -403,7 +403,7 @@
for (ptr=ports; next_token(&ptr, tok, " \t,", sizeof(tok)); ) {
unsigned port = atoi(tok);
- if (port == 0) continue;
+ if (port == 0 || port > 0xffff) continue;
/* open an incoming socket */
s = open_socket_in(SOCK_STREAM, port, 0,
interpret_addr(lp_socket_address()),True);
More information about the samba-cvs
mailing list