From: Joseph Sutton Date: Fri, 6 Oct 2023 02:38:29 +0000 (+1300) Subject: s3:nmbd: Remove redundant code (CID 1414756) X-Git-Tag: tevent-0.16.0~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67b2dc725da4757446ffc704a991943daa80a50d;p=thirdparty%2Fsamba.git s3:nmbd: Remove redundant code (CID 1414756) ‘buf’ is reassigned a few lines down. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/nmbd/nmbd_incomingrequests.c b/source3/nmbd/nmbd_incomingrequests.c index 6cace78799b..06c486d9811 100644 --- a/source3/nmbd/nmbd_incomingrequests.c +++ b/source3/nmbd/nmbd_incomingrequests.c @@ -369,8 +369,6 @@ subnet %s - name not found.\n", nmb_namestr(&nmb->question.question_name), set_nb_flags( &buf[16],namerec->data.nb_flags ); buf[16] |= NB_ACTIVE; /* all our names are active */ - buf += 18; - names_added++; } }