diff options
author | beck <> | 2014-07-13 16:03:10 +0000 |
---|---|---|
committer | beck <> | 2014-07-13 16:03:10 +0000 |
commit | 6e4dfa23733fddf37830d1039cf31a2ffb86bdaf (patch) | |
tree | c2bbb8405534dcf838bc686b6748045284f3966b /src/lib/libssl/t1_lib.c | |
parent | 143b41eb184dd7da7b6f74162483016fbb5faab0 (diff) | |
download | openbsd-6e4dfa23733fddf37830d1039cf31a2ffb86bdaf.tar.gz openbsd-6e4dfa23733fddf37830d1039cf31a2ffb86bdaf.tar.bz2 openbsd-6e4dfa23733fddf37830d1039cf31a2ffb86bdaf.zip |
The bell tolls for BUF_strdup - Start the migration to using
intrinsics. This is the easy ones, a few left to check one at
a time.
ok miod@ deraadt@
Diffstat (limited to 'src/lib/libssl/t1_lib.c')
-rw-r--r-- | src/lib/libssl/t1_lib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c index 46b47a95b7..d82573fdb6 100644 --- a/src/lib/libssl/t1_lib.c +++ b/src/lib/libssl/t1_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t1_lib.c,v 1.50 2014/07/12 22:33:39 jsing Exp $ */ | 1 | /* $OpenBSD: t1_lib.c,v 1.51 2014/07/13 16:03:10 beck Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1426,7 +1426,8 @@ ssl_parse_serverhello_tlsext(SSL *s, unsigned char **p, unsigned char *d, | |||
1426 | if (!s->hit && tlsext_servername == 1) { | 1426 | if (!s->hit && tlsext_servername == 1) { |
1427 | if (s->tlsext_hostname) { | 1427 | if (s->tlsext_hostname) { |
1428 | if (s->session->tlsext_hostname == NULL) { | 1428 | if (s->session->tlsext_hostname == NULL) { |
1429 | s->session->tlsext_hostname = BUF_strdup(s->tlsext_hostname); | 1429 | s->session->tlsext_hostname = |
1430 | strdup(s->tlsext_hostname); | ||
1430 | 1431 | ||
1431 | if (!s->session->tlsext_hostname) { | 1432 | if (!s->session->tlsext_hostname) { |
1432 | *al = SSL_AD_UNRECOGNIZED_NAME; | 1433 | *al = SSL_AD_UNRECOGNIZED_NAME; |