svn commit: samba r12440 - in branches/SAMBA_4_0/source/nbt_server:
. wins
metze at samba.org
metze at samba.org
Thu Dec 22 22:03:26 GMT 2005
Author: metze
Date: 2005-12-22 22:03:25 +0000 (Thu, 22 Dec 2005)
New Revision: 12440
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12440
Log:
fix crash bugs
metze
Modified:
branches/SAMBA_4_0/source/nbt_server/interfaces.c
branches/SAMBA_4_0/source/nbt_server/wins/winsclient.c
Changeset:
Modified: branches/SAMBA_4_0/source/nbt_server/interfaces.c
===================================================================
--- branches/SAMBA_4_0/source/nbt_server/interfaces.c 2005-12-22 21:43:16 UTC (rev 12439)
+++ branches/SAMBA_4_0/source/nbt_server/interfaces.c 2005-12-22 22:03:25 UTC (rev 12440)
@@ -279,6 +279,9 @@
if (ret[count] == NULL) goto failed;
count++;
}
+
+ if (ret == NULL) goto failed;
+
ret[count] = NULL;
return ret;
Modified: branches/SAMBA_4_0/source/nbt_server/wins/winsclient.c
===================================================================
--- branches/SAMBA_4_0/source/nbt_server/wins/winsclient.c 2005-12-22 21:43:16 UTC (rev 12439)
+++ branches/SAMBA_4_0/source/nbt_server/wins/winsclient.c 2005-12-22 22:03:25 UTC (rev 12440)
@@ -127,6 +127,11 @@
io.in.nb_flags = iname->nb_flags;
io.in.ttl = iname->ttl;
+ if (!io.in.addresses) {
+ talloc_free(tmp_ctx);
+ return;
+ }
+
c = nbt_name_refresh_wins_send(wins_socket(iface), &io);
if (c == NULL) {
talloc_free(tmp_ctx);
@@ -218,6 +223,10 @@
io.in.nb_flags = iname->nb_flags;
io.in.ttl = iname->ttl;
+ if (!io.in.addresses) {
+ return;
+ }
+
c = nbt_name_register_wins_send(wins_socket(iface), &io);
if (c == NULL) {
talloc_free(io.in.addresses);
More information about the samba-cvs
mailing list