threads / patch / 11997

patchimap-send.c: guard config parser from value=NULL

Subject: [PATCH] imap-send.c: guard config parser from value=NULL

## tl;dr

One message between Feb 9, 2008 and Feb 9, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Govind Salinas· Feb 9, 2008, 20:18 UTC · lore
Signed-off-by: Govind Salinas <blix@sophiasuchtig.com>
---
 imap-send.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to imap-send.c +1 −1
diff --git a/imap-send.c b/imap-send.c
index a429a76..a8f430e 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -1258,7 +1258,7 @@ git_imap_config(const char *key, const char *val)

 	if (!strcmp( "folder", key )) {
 		imap_folder = xstrdup( val );
-	} else if (!strcmp( "host", key )) {
+	} else if (val && !strcmp( "host", key )) {
 		{
 			if (!prefixcmp(val, "imap:"))
 				val += 5;
-- 
1.5.4.36.g9af61

← back to recent threads