diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/store/str_lib.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509_trs.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_addr.c | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/store/str_lib.c | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/x509/x509_trs.c | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/x509v3/v3_addr.c | 4 |
6 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/libcrypto/store/str_lib.c b/src/lib/libcrypto/store/str_lib.c index 9ae93b6405..2ea3ad958a 100644 --- a/src/lib/libcrypto/store/str_lib.c +++ b/src/lib/libcrypto/store/str_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: str_lib.c,v 1.11 2014/10/16 03:19:02 beck Exp $ */ | 1 | /* $OpenBSD: str_lib.c,v 1.12 2014/11/18 03:28:05 tedu Exp $ */ |
2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL |
3 | * project 2003. | 3 | * project 2003. |
4 | */ | 4 | */ |
@@ -1341,7 +1341,7 @@ STORE_ATTR_INFO_set_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | |||
1341 | return 0; | 1341 | return 0; |
1342 | } | 1342 | } |
1343 | if (!ATTR_IS_SET(attrs, code)) { | 1343 | if (!ATTR_IS_SET(attrs, code)) { |
1344 | if (cstr && (attrs->values[code].cstring = strndup(cstr, cstr_size))) | 1344 | if ((attrs->values[code].cstring = strndup(cstr, cstr_size))) |
1345 | return 1; | 1345 | return 1; |
1346 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_CSTR, | 1346 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_CSTR, |
1347 | ERR_R_MALLOC_FAILURE); | 1347 | ERR_R_MALLOC_FAILURE); |
diff --git a/src/lib/libcrypto/x509/x509_trs.c b/src/lib/libcrypto/x509/x509_trs.c index d4e6be65e6..95fb568c68 100644 --- a/src/lib/libcrypto/x509/x509_trs.c +++ b/src/lib/libcrypto/x509/x509_trs.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_trs.c,v 1.17 2014/10/16 03:19:02 beck Exp $ */ | 1 | /* $OpenBSD: x509_trs.c,v 1.18 2014/11/18 03:28:05 tedu 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -203,7 +203,7 @@ X509_TRUST_add(int id, int flags, int (*ck)(X509_TRUST *, X509 *, int), | |||
203 | if (trtmp->flags & X509_TRUST_DYNAMIC_NAME) | 203 | if (trtmp->flags & X509_TRUST_DYNAMIC_NAME) |
204 | free(trtmp->name); | 204 | free(trtmp->name); |
205 | /* dup supplied name */ | 205 | /* dup supplied name */ |
206 | if (name == NULL || (trtmp->name = strdup(name)) == NULL) | 206 | if ((trtmp->name = strdup(name)) == NULL) |
207 | goto err; | 207 | goto err; |
208 | /* Keep the dynamic flag of existing entry */ | 208 | /* Keep the dynamic flag of existing entry */ |
209 | trtmp->flags &= X509_TRUST_DYNAMIC; | 209 | trtmp->flags &= X509_TRUST_DYNAMIC; |
diff --git a/src/lib/libcrypto/x509v3/v3_addr.c b/src/lib/libcrypto/x509v3/v3_addr.c index 1e016586c7..40efb1b9ac 100644 --- a/src/lib/libcrypto/x509v3/v3_addr.c +++ b/src/lib/libcrypto/x509v3/v3_addr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_addr.c,v 1.13 2014/07/13 16:03:10 beck Exp $ */ | 1 | /* $OpenBSD: v3_addr.c,v 1.14 2014/11/18 03:28:05 tedu Exp $ */ |
2 | /* | 2 | /* |
3 | * Contributed to the OpenSSL Project by the American Registry for | 3 | * Contributed to the OpenSSL Project by the American Registry for |
4 | * Internet Numbers ("ARIN"). | 4 | * Internet Numbers ("ARIN"). |
@@ -1019,7 +1019,7 @@ v2i_IPAddrBlocks(const struct v3_ext_method *method, struct v3_ext_ctx *ctx, | |||
1019 | length = length_from_afi(afi); | 1019 | length = length_from_afi(afi); |
1020 | 1020 | ||
1021 | /* | 1021 | /* |
1022 | * Handle SAFI, if any, and BUF_strdup() so we can null-terminate | 1022 | * Handle SAFI, if any, and strdup() so we can null-terminate |
1023 | * the other input values. | 1023 | * the other input values. |
1024 | */ | 1024 | */ |
1025 | if (safi != NULL) { | 1025 | if (safi != NULL) { |
diff --git a/src/lib/libssl/src/crypto/store/str_lib.c b/src/lib/libssl/src/crypto/store/str_lib.c index 9ae93b6405..2ea3ad958a 100644 --- a/src/lib/libssl/src/crypto/store/str_lib.c +++ b/src/lib/libssl/src/crypto/store/str_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: str_lib.c,v 1.11 2014/10/16 03:19:02 beck Exp $ */ | 1 | /* $OpenBSD: str_lib.c,v 1.12 2014/11/18 03:28:05 tedu Exp $ */ |
2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL |
3 | * project 2003. | 3 | * project 2003. |
4 | */ | 4 | */ |
@@ -1341,7 +1341,7 @@ STORE_ATTR_INFO_set_cstr(STORE_ATTR_INFO *attrs, STORE_ATTR_TYPES code, | |||
1341 | return 0; | 1341 | return 0; |
1342 | } | 1342 | } |
1343 | if (!ATTR_IS_SET(attrs, code)) { | 1343 | if (!ATTR_IS_SET(attrs, code)) { |
1344 | if (cstr && (attrs->values[code].cstring = strndup(cstr, cstr_size))) | 1344 | if ((attrs->values[code].cstring = strndup(cstr, cstr_size))) |
1345 | return 1; | 1345 | return 1; |
1346 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_CSTR, | 1346 | STOREerr(STORE_F_STORE_ATTR_INFO_SET_CSTR, |
1347 | ERR_R_MALLOC_FAILURE); | 1347 | ERR_R_MALLOC_FAILURE); |
diff --git a/src/lib/libssl/src/crypto/x509/x509_trs.c b/src/lib/libssl/src/crypto/x509/x509_trs.c index d4e6be65e6..95fb568c68 100644 --- a/src/lib/libssl/src/crypto/x509/x509_trs.c +++ b/src/lib/libssl/src/crypto/x509/x509_trs.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_trs.c,v 1.17 2014/10/16 03:19:02 beck Exp $ */ | 1 | /* $OpenBSD: x509_trs.c,v 1.18 2014/11/18 03:28:05 tedu 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -203,7 +203,7 @@ X509_TRUST_add(int id, int flags, int (*ck)(X509_TRUST *, X509 *, int), | |||
203 | if (trtmp->flags & X509_TRUST_DYNAMIC_NAME) | 203 | if (trtmp->flags & X509_TRUST_DYNAMIC_NAME) |
204 | free(trtmp->name); | 204 | free(trtmp->name); |
205 | /* dup supplied name */ | 205 | /* dup supplied name */ |
206 | if (name == NULL || (trtmp->name = strdup(name)) == NULL) | 206 | if ((trtmp->name = strdup(name)) == NULL) |
207 | goto err; | 207 | goto err; |
208 | /* Keep the dynamic flag of existing entry */ | 208 | /* Keep the dynamic flag of existing entry */ |
209 | trtmp->flags &= X509_TRUST_DYNAMIC; | 209 | trtmp->flags &= X509_TRUST_DYNAMIC; |
diff --git a/src/lib/libssl/src/crypto/x509v3/v3_addr.c b/src/lib/libssl/src/crypto/x509v3/v3_addr.c index 1e016586c7..40efb1b9ac 100644 --- a/src/lib/libssl/src/crypto/x509v3/v3_addr.c +++ b/src/lib/libssl/src/crypto/x509v3/v3_addr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_addr.c,v 1.13 2014/07/13 16:03:10 beck Exp $ */ | 1 | /* $OpenBSD: v3_addr.c,v 1.14 2014/11/18 03:28:05 tedu Exp $ */ |
2 | /* | 2 | /* |
3 | * Contributed to the OpenSSL Project by the American Registry for | 3 | * Contributed to the OpenSSL Project by the American Registry for |
4 | * Internet Numbers ("ARIN"). | 4 | * Internet Numbers ("ARIN"). |
@@ -1019,7 +1019,7 @@ v2i_IPAddrBlocks(const struct v3_ext_method *method, struct v3_ext_ctx *ctx, | |||
1019 | length = length_from_afi(afi); | 1019 | length = length_from_afi(afi); |
1020 | 1020 | ||
1021 | /* | 1021 | /* |
1022 | * Handle SAFI, if any, and BUF_strdup() so we can null-terminate | 1022 | * Handle SAFI, if any, and strdup() so we can null-terminate |
1023 | * the other input values. | 1023 | * the other input values. |
1024 | */ | 1024 | */ |
1025 | if (safi != NULL) { | 1025 | if (safi != NULL) { |