From c4e3191290f7dc034878e8c9eee2f395db280afd Mon Sep 17 00:00:00 2001 From: beck <> Date: Tue, 22 Jul 2014 02:21:20 +0000 Subject: Kill a bunch more BUF_strdup's - these are converted to have a check for NULL before an intrinsic strdup. ok miod@ --- src/lib/libcrypto/store/str_meth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/store') diff --git a/src/lib/libcrypto/store/str_meth.c b/src/lib/libcrypto/store/str_meth.c index b3d4f9cc37..9d7c5ed98d 100644 --- a/src/lib/libcrypto/store/str_meth.c +++ b/src/lib/libcrypto/store/str_meth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: str_meth.c,v 1.6 2014/06/12 15:49:30 deraadt Exp $ */ +/* $OpenBSD: str_meth.c,v 1.7 2014/07/22 02:21:20 beck Exp $ */ /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL * project 2003. */ @@ -65,8 +65,8 @@ STORE_create_method(char *name) { STORE_METHOD *store_method = calloc(1, sizeof(STORE_METHOD)); - if (store_method) - store_method->name = BUF_strdup(name); + if (store_method && name) + store_method->name = strdup(name); return store_method; } -- cgit v1.2.3-55-g6feb