summaryrefslogtreecommitdiff
path: root/source4/nbt_server/wins/winsclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/nbt_server/wins/winsclient.c')
-rw-r--r--source4/nbt_server/wins/winsclient.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/nbt_server/wins/winsclient.c b/source4/nbt_server/wins/winsclient.c
index fdfdc8f0ed..6bf328d146 100644
--- a/source4/nbt_server/wins/winsclient.c
+++ b/source4/nbt_server/wins/winsclient.c
@@ -127,6 +127,11 @@ static void nbtd_wins_refresh(struct event_context *ev, struct timed_event *te,
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 @@ void nbtd_winsclient_register(struct nbtd_iface_name *iname)
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);