From: Stefan Metzmacher Date: Sat, 17 Jan 2009 09:06:08 +0000 (+0100) Subject: NBT-WINS: initialize .dest_port explicit (we should fill the whole struct each time) X-Git-Tag: samba-4.0.0alpha6~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b91640fbb16b5ab248d2fa4d2832f61dac29944;p=thirdparty%2Fsamba.git NBT-WINS: initialize .dest_port explicit (we should fill the whole struct each time) This makes the code more clear. metze --- diff --git a/source4/torture/nbt/wins.c b/source4/torture/nbt/wins.c index 0399daedf05..242c72e37d3 100644 --- a/source4/torture/nbt/wins.c +++ b/source4/torture/nbt/wins.c @@ -181,6 +181,7 @@ static bool nbt_test_wins_name(struct torture_context *tctx, const char *address torture_comment(tctx, "release the name\n"); release.in.name = *name; + release.in.dest_port = lp_nbt_port(tctx->lp_ctx); release.in.dest_addr = address; release.in.address = myaddress; release.in.nb_flags = nb_flags;