mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
don't qsort a list less than 2 entries
(This used to be commit 6faa3c23ae6d8aab52f8d6689e04bde9b3029804)
This commit is contained in:
parent
644f22ac61
commit
84f65e6be6
@ -383,7 +383,9 @@ subnet %s - name not found.\n", nmb_namestr(&nmb->question.question_name),
|
||||
}
|
||||
|
||||
/* Remove duplicate names. */
|
||||
qsort( buf0, names_added, 18, QSORT_CAST status_compare );
|
||||
if (names_added > 1) {
|
||||
qsort( buf0, names_added, 18, QSORT_CAST status_compare );
|
||||
}
|
||||
|
||||
for( i=1; i < names_added ; i++ )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user