summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/nmbd/nmbd_winsproxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd_winsproxy.c b/source3/nmbd/nmbd_winsproxy.c
index a66290da6c..4f08b2fc5b 100644
--- a/source3/nmbd/nmbd_winsproxy.c
+++ b/source3/nmbd/nmbd_winsproxy.c
@@ -47,11 +47,11 @@ static void wins_proxy_name_query_request_success( struct subnet_record *subrec,
memcpy( (char *)&original_packet, &userdata->data[sizeof(struct subnet_record *)],
sizeof(struct packet_struct *) );
- nb_flags = get_nb_flags( rrec->rdata );
-
if (rrec) {
+ nb_flags = get_nb_flags( rrec->rdata );
num_ips = rrec->rdlength / 6;
} else {
+ nb_flags = 0;
num_ips = 0;
}