diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-11-02 18:27:24 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-11-02 18:27:24 +0100 |
commit | ee7c2170a79f1ca9e2ad1a209d342d8fd287ec8d (patch) | |
tree | a22d1a62a4ed5346312a03972f0e98f6996b5067 /libcli/nbt/nbtsocket.c | |
parent | e7810b1bc2c920d828d694817f88ea3ae9e74750 (diff) | |
download | samba-ee7c2170a79f1ca9e2ad1a209d342d8fd287ec8d.tar.gz samba-ee7c2170a79f1ca9e2ad1a209d342d8fd287ec8d.tar.xz samba-ee7c2170a79f1ca9e2ad1a209d342d8fd287ec8d.zip |
Remove another use of global_loadparm.
Diffstat (limited to 'libcli/nbt/nbtsocket.c')
-rw-r--r-- | libcli/nbt/nbtsocket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcli/nbt/nbtsocket.c b/libcli/nbt/nbtsocket.c index dbbdc1b02a4..65ed8725331 100644 --- a/libcli/nbt/nbtsocket.c +++ b/libcli/nbt/nbtsocket.c @@ -247,7 +247,7 @@ static void nbt_name_socket_recv(struct nbt_name_socket *nbtsock) req->received_wack = true; /* although there can be a timeout in the packet, w2k3 screws it up, so better to set it ourselves */ - req->timeout = lp_parm_int(global_loadparm, NULL, "nbt", "wack_timeout", 30); + req->timeout = nbtsock->wack_timeout; req->te = event_add_timed(req->nbtsock->event_ctx, req, timeval_current_ofs(req->timeout, 0), nbt_name_socket_timeout, req); @@ -334,6 +334,7 @@ _PUBLIC_ struct nbt_name_socket *nbt_name_socket_init(TALLOC_CTX *mem_ctx, nbtsock->send_queue = NULL; nbtsock->num_pending = 0; + nbtsock->wack_timeout = 30; nbtsock->incoming.handler = NULL; nbtsock->unexpected.handler = NULL; nbtsock->iconv_convenience = iconv_convenience; |