s3:libsmb: use only a timeout of 250ms in name_resolve_bcast_send()
authorStefan Metzmacher <metze@samba.org>
Thu, 31 Oct 2019 06:47:53 +0000 (07:47 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 10 Feb 2020 15:46:42 +0000 (16:46 +0100)
We use the same value for broadcasts in name_query().

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/libsmb/namequery.c

index e27b60b0398e90d2b5db28c31dc7b0594fbbaea3..454ea61a8956ee38e40f9e89c6876b6618060c00 100644 (file)
@@ -1871,7 +1871,7 @@ struct tevent_req *name_resolve_bcast_send(TALLOC_CTX *mem_ctx,
        }
 
        subreq = name_queries_send(state, ev, name, name_type, true, true,
-                                  bcast_addrs, num_bcast_addrs, 0, 1000);
+                                  bcast_addrs, num_bcast_addrs, 0, 250);
        if (tevent_req_nomem(subreq, req)) {
                return tevent_req_post(req, ev);
        }