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~6^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7397e91a47e3f8c9e742ea55440f0d0a97fbd3ba;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 552bcbe3b..171a1d765 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);