From 4327e46fda0542c1f61bf79af3f99cd6423beeae Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Sat, 17 Apr 2010 21:03:06 +0200 Subject: [PATCH] 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 --- ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2