diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/asn_mime.c')
-rw-r--r-- | src/lib/libcrypto/asn1/asn_mime.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/asn1/asn_mime.c b/src/lib/libcrypto/asn1/asn_mime.c index 994531837f..c153deca1e 100644 --- a/src/lib/libcrypto/asn1/asn_mime.c +++ b/src/lib/libcrypto/asn1/asn_mime.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn_mime.c,v 1.21 2014/07/11 13:41:59 miod Exp $ */ | 1 | /* $OpenBSD: asn_mime.c,v 1.22 2014/07/13 16:03:09 beck Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project. | 3 | * project. |
4 | */ | 4 | */ |
@@ -833,13 +833,13 @@ mime_hdr_new(char *name, char *value) | |||
833 | char *tmpname = NULL, *tmpval = NULL, *p; | 833 | char *tmpname = NULL, *tmpval = NULL, *p; |
834 | 834 | ||
835 | if (name) { | 835 | if (name) { |
836 | if (!(tmpname = BUF_strdup(name))) | 836 | if (!(tmpname = strdup(name))) |
837 | goto err; | 837 | goto err; |
838 | for (p = tmpname; *p; p++) | 838 | for (p = tmpname; *p; p++) |
839 | *p = tolower((unsigned char)*p); | 839 | *p = tolower((unsigned char)*p); |
840 | } | 840 | } |
841 | if (value) { | 841 | if (value) { |
842 | if (!(tmpval = BUF_strdup(value))) | 842 | if (!(tmpval = strdup(value))) |
843 | goto err; | 843 | goto err; |
844 | for (p = tmpval; *p; p++) | 844 | for (p = tmpval; *p; p++) |
845 | *p = tolower((unsigned char)*p); | 845 | *p = tolower((unsigned char)*p); |
@@ -867,14 +867,14 @@ mime_hdr_addparam(MIME_HEADER *mhdr, char *name, char *value) | |||
867 | MIME_PARAM *mparam; | 867 | MIME_PARAM *mparam; |
868 | 868 | ||
869 | if (name) { | 869 | if (name) { |
870 | tmpname = BUF_strdup(name); | 870 | tmpname = strdup(name); |
871 | if (!tmpname) | 871 | if (!tmpname) |
872 | goto err; | 872 | goto err; |
873 | for (p = tmpname; *p; p++) | 873 | for (p = tmpname; *p; p++) |
874 | *p = tolower((unsigned char)*p); | 874 | *p = tolower((unsigned char)*p); |
875 | } | 875 | } |
876 | if (value) { | 876 | if (value) { |
877 | tmpval = BUF_strdup(value); | 877 | tmpval = strdup(value); |
878 | if (!tmpval) | 878 | if (!tmpval) |
879 | goto err; | 879 | goto err; |
880 | } | 880 | } |