summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@sernet.de>2008-02-08 11:50:34 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-19 07:05:50 +0100
commitcd5e43b32761daea36187f28a72795f7696ea546 (patch)
treecee63f338a61d3c6f020dc978be006acd3f98a0c /source4
parenta5b3975cf71f0bf114832c958ba855646c69832c (diff)
downloadsamba-cd5e43b32761daea36187f28a72795f7696ea546.tar.gz
samba-cd5e43b32761daea36187f28a72795f7696ea546.tar.bz2
samba-cd5e43b32761daea36187f28a72795f7696ea546.zip
nbt_server: fix crash bug, the wins client interface may not have a nbtsock
metze (from samba4wins tree 8035601da7c7e8b65fe1d82c2654c412fa169338)
Diffstat (limited to 'source4')
-rw-r--r--source4/nbt_server/interfaces.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/nbt_server/interfaces.c b/source4/nbt_server/interfaces.c
index 4bc18feb59..0a9196a747 100644
--- a/source4/nbt_server/interfaces.c
+++ b/source4/nbt_server/interfaces.c
@@ -97,7 +97,7 @@ static void nbtd_unexpected_handler(struct nbt_name_socket *nbtsock,
}
/* try the wins server client interface */
- if (!req && nbtsrv->wins_interface) {
+ if (!req && nbtsrv->wins_interface && nbtsrv->wins_interface->nbtsock) {
i = nbtsrv->wins_interface;
req = idr_find(i->nbtsock->idr, packet->name_trn_id);
}