summaryrefslogtreecommitdiff
path: root/source/utils/nmblookup.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-02-24 17:59:34 +0000
committerJeremy Allison <jra@samba.org>1998-02-24 17:59:34 +0000
commit776ccf5c0641b5aa300236c2612b5f2761d1179f (patch)
tree9bca5ad7ff439f2d8b6c531ce63390b90e9198c5 /source/utils/nmblookup.c
parente58ab3bbe6e939ba678ad5482e58e0191c8dcbcb (diff)
downloadsamba-776ccf5c0641b5aa300236c2612b5f2761d1179f.tar.gz
nmbd_incomingdgrams.c: Fix for typo.
nmbd_sendannounce.c: Remote announcement was announcing to the wrong name ! nmblookup.c: Fix for substitutions not seeing hostname. testparm.c: Fix for substitutions not seeing hostname. wsmbstatus.c: Fix for substitutions not seeing hostname. util.c: Change read_udp_socket to use sockaddr_in rather than dubiously messing around with an opaque data type (sockaddr). Jeremy.
Diffstat (limited to 'source/utils/nmblookup.c')
-rw-r--r--source/utils/nmblookup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/utils/nmblookup.c b/source/utils/nmblookup.c
index 5cd5a869a99..a73a35cd56c 100644
--- a/source/utils/nmblookup.c
+++ b/source/utils/nmblookup.c
@@ -170,12 +170,13 @@ int main(int argc,char *argv[])
exit(1);
}
+ init_structs();
+
if (!lp_load(servicesf,True)) {
fprintf(stderr, "Can't load %s - run testparm to debug it\n", servicesf);
}
load_interfaces();
- init_structs();
if (!open_sockets()) return(1);
if (!got_bcast)