Techincally unnecessary, since this thing won't let you add NULL
data to it, but this is harmless and then obviously following
the correct paradigm.
Reviewed-by: Matt Caswell <matt@openssl.foundation>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
MergeDate: Sat May 2 18:05:04 2026
(Merged from https://github.com/openssl/openssl/pull/31049)
return -1;
if ((*a)->len > (*b)->len)
return 1;
+ if ((*b)->len == 0)
+ return 0;
return memcmp((*a)->data, (*b)->data, (*b)->len);
}