From: David Sommerseth Date: Sat, 17 Apr 2010 19:03:06 +0000 (+0200) Subject: Fixed potential NULL pointer issue X-Git-Tag: v2.2-beta1~7^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90919b019c9db272113c885945014b098a7f987b;p=thirdparty%2Fopenvpn.git Fixed potential NULL pointer issue If create_temp_file() returns NULL, this strlen() check would cause a SEGV. Signed-off-by: David Sommerseth Acked-by: Gert Doering --- diff --git a/ssl.c b/ssl.c index 30477197f..44a1bb219 100644 --- a/ssl.c +++ b/ssl.c @@ -3194,7 +3194,7 @@ verify_user_pass_script (struct tls_session *session, const struct user_pass *up } done: - if (strlen (tmp_file) > 0) + if (tmp_file && strlen (tmp_file) > 0) delete_file (tmp_file); argv_reset (&argv);