forked from pool/openssl
d08abccec7
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/107790 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openssl?expand=0&rev=73
16 lines
539 B
Diff
16 lines
539 B
Diff
Index: openssl-1.0.0g/crypto/asn1/asn_mime.c
|
|
===================================================================
|
|
--- openssl-1.0.0g.orig/crypto/asn1/asn_mime.c
|
|
+++ openssl-1.0.0g/crypto/asn1/asn_mime.c
|
|
@@ -858,6 +858,10 @@ static int mime_hdr_addparam(MIME_HEADER
|
|
static int mime_hdr_cmp(const MIME_HEADER * const *a,
|
|
const MIME_HEADER * const *b)
|
|
{
|
|
+ if ((*a)->name == NULL || (*b)->name == NULL)
|
|
+ return (*a)->name - (*b)->name < 0 ? -1 :
|
|
+ (*a)->name - (*b)->name > 0 ? 1 : 0;
|
|
+
|
|
return(strcmp((*a)->name, (*b)->name));
|
|
}
|
|
|