diff options
| author | beck <> | 2014-07-13 16:03:10 +0000 |
|---|---|---|
| committer | beck <> | 2014-07-13 16:03:10 +0000 |
| commit | c7e9c2c6576cd5406680f9b69aff2038ba63b0dc (patch) | |
| tree | c2bbb8405534dcf838bc686b6748045284f3966b /src/lib/libcrypto/bio/b_sock.c | |
| parent | 679de7876fe8228887034f815ef2e29db63ba752 (diff) | |
| download | openbsd-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/b_sock.c')
| -rw-r--r-- | src/lib/libcrypto/bio/b_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/b_sock.c b/src/lib/libcrypto/bio/b_sock.c index 8c37a3e175..ced0406bc1 100644 --- a/src/lib/libcrypto/bio/b_sock.c +++ b/src/lib/libcrypto/bio/b_sock.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: b_sock.c,v 1.54 2014/07/11 08:44:47 jsing Exp $ */ | 1 | /* $OpenBSD: b_sock.c,v 1.55 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 | * |
| @@ -235,7 +235,7 @@ BIO_get_accept_socket(char *host, int bind_mode) | |||
| 235 | unsigned long l; | 235 | unsigned long l; |
| 236 | int err_num; | 236 | int err_num; |
| 237 | 237 | ||
| 238 | if ((str = BUF_strdup(host)) == NULL) | 238 | if (host == NULL || (str = strdup(host)) == NULL) |
| 239 | return (-1); | 239 | return (-1); |
| 240 | 240 | ||
| 241 | h = p = NULL; | 241 | h = p = NULL; |
