From 54454b30ff7da2af857b3fcc31ece6f2b39cfb09 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 24 Aug 2020 11:54:26 -0700 Subject: s3: libsmb: Cleanup - Remove two more sockaddr casts inside remove_duplicate_addrs2(). Signed-off-by: Jeremy Allison Reviewed-by: David Mulder --- source3/libsmb/namequery.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 464a9b7b4a4..7975e226f72 100644 --- a/source3/libsmb/namequery.c +++ b/source3/libsmb/namequery.c @@ -1203,13 +1203,28 @@ int remove_duplicate_addrs2(struct ip_service *iplist, int count ) /* One loop to set duplicates to a zero addr. */ for ( i=0; i