diff options
author | 2014-07-13 16:03:09 +0000 | |
---|---|---|
committer | 2014-07-13 16:03:09 +0000 | |
commit | 74a2cbdcfd19dacf51a0f171d05707c1b7276d9b (patch) | |
tree | 15e1064adfbd3cb00711a975bdf6d5db4ddb1889 /lib/libssl/s3_lib.c | |
parent | tedu setlist support, superseded by the new locate dbs. (diff) | |
download | wireguard-openbsd-74a2cbdcfd19dacf51a0f171d05707c1b7276d9b.tar.xz wireguard-openbsd-74a2cbdcfd19dacf51a0f171d05707c1b7276d9b.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 'lib/libssl/s3_lib.c')
-rw-r--r-- | lib/libssl/s3_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/s3_lib.c b/lib/libssl/s3_lib.c index decdda90a3d..8a40b758a92 100644 --- a/lib/libssl/s3_lib.c +++ b/lib/libssl/s3_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s3_lib.c,v 1.70 2014/07/12 22:33:39 jsing Exp $ */ +/* $OpenBSD: s3_lib.c,v 1.71 2014/07/13 16:03:10 beck Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -2566,7 +2566,7 @@ ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) SSL_R_SSL3_EXT_INVALID_SERVERNAME); return 0; } - if ((s->tlsext_hostname = BUF_strdup((char *)parg)) + if ((s->tlsext_hostname = strdup((char *)parg)) == NULL) { SSLerr(SSL_F_SSL3_CTRL, ERR_R_INTERNAL_ERROR); |