From 9b44f0d3dbfa90fdde4fa8329c758570e64d8500 Mon Sep 17 00:00:00 2001 From: miod <> Date: Sat, 5 Nov 2016 19:59:01 +0000 Subject: One of the error paths would attempt to access not-yet-initialized locals. Simply return since there is nothing more to do. Spotted by coverity. ok jsing@ beck@ --- src/lib/libssl/ssl_asn1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libssl') diff --git a/src/lib/libssl/ssl_asn1.c b/src/lib/libssl/ssl_asn1.c index 59e7cdf7b2..02124da520 100644 --- a/src/lib/libssl/ssl_asn1.c +++ b/src/lib/libssl/ssl_asn1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_asn1.c,v 1.42 2016/11/04 15:09:29 jsing Exp $ */ +/* $OpenBSD: ssl_asn1.c,v 1.43 2016/11/05 19:59:01 miod Exp $ */ /* * Copyright (c) 2016 Joel Sing @@ -231,7 +231,7 @@ d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, long length) if (s == NULL) { if ((s = SSL_SESSION_new()) == NULL) { SSLerr(SSL_F_D2I_SSL_SESSION, ERR_R_MALLOC_FAILURE); - goto err; + return (NULL); } } -- cgit v1.2.3-55-g6feb