summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_acpt.c
diff options
context:
space:
mode:
authorbeck <>2014-07-13 16:03:10 +0000
committerbeck <>2014-07-13 16:03:10 +0000
commitc7e9c2c6576cd5406680f9b69aff2038ba63b0dc (patch)
treec2bbb8405534dcf838bc686b6748045284f3966b /src/lib/libcrypto/bio/bss_acpt.c
parent679de7876fe8228887034f815ef2e29db63ba752 (diff)
downloadopenbsd-c7e9c2c6576cd5406680f9b69aff2038ba63b0dc.tar.gz
openbsd-c7e9c2c6576cd5406680f9b69aff2038ba63b0dc.tar.bz2
openbsd-c7e9c2c6576cd5406680f9b69aff2038ba63b0dc.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/libcrypto/bio/bss_acpt.c')
-rw-r--r--src/lib/libcrypto/bio/bss_acpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/bss_acpt.c b/src/lib/libcrypto/bio/bss_acpt.c
index c0316a2999..65d4bb2547 100644
--- a/src/lib/libcrypto/bio/bss_acpt.c
+++ b/src/lib/libcrypto/bio/bss_acpt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bss_acpt.c,v 1.23 2014/07/11 08:44:47 jsing Exp $ */ 1/* $OpenBSD: bss_acpt.c,v 1.24 2014/07/13 16:03:09 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 *
@@ -354,7 +354,7 @@ acpt_ctrl(BIO *b, int cmd, long num, void *ptr)
354 if (num == 0) { 354 if (num == 0) {
355 b->init = 1; 355 b->init = 1;
356 free(data->param_addr); 356 free(data->param_addr);
357 data->param_addr = BUF_strdup(ptr); 357 data->param_addr = strdup(ptr);
358 } else if (num == 1) { 358 } else if (num == 1) {
359 data->accept_nbio = (ptr != NULL); 359 data->accept_nbio = (ptr != NULL);
360 } else if (num == 2) { 360 } else if (num == 2) {