From: David Sommerseth Date: Sat, 17 Apr 2010 19:03:06 +0000 (+0200) Subject: Fixed potential NULL pointer issue X-Git-Tag: v2.2-beta4~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2bf22af84a1758d6ba281cd22e4ff44a7bb40c6;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 94f98b124..1ed5acee4 100644 --- a/ssl.c +++ b/ssl.c @@ -3265,7 +3265,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);