mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-21 01:50:07 -04:00
dnssec: don't qsort() empty hashlist
(cherry picked from commit 6bbb0b8e42)
This commit is contained in:
parent
aaded0efe0
commit
38866cb5c4
1 changed files with 4 additions and 1 deletions
|
|
@ -794,7 +794,10 @@ hashlist_comp(const void *a, const void *b) {
|
|||
|
||||
static void
|
||||
hashlist_sort(hashlist_t *l) {
|
||||
qsort(l->hashbuf, l->entries, l->length, hashlist_comp);
|
||||
INSIST(l->hashbuf != NULL || l->length == 0);
|
||||
if (l->length > 0) {
|
||||
qsort(l->hashbuf, l->entries, l->length, hashlist_comp);
|
||||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Reference in a new issue