From: Simon Schubert <2@0x2c.org> Date: Mon, 2 Jan 2012 19:40:22 +0000 (+0100) Subject: parse_conf: fix bug with masqueraded domains X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ca95b915c5db208af77826f0875313bef895993f;p=people%2Fms%2Fdma.git parse_conf: fix bug with masqueraded domains We need to clear the @ symbol instead of NULLing the pointer. Found-by: clang static analysis --- diff --git a/conf.c b/conf.c index 29b6e1b..4e15b59 100644 --- a/conf.c +++ b/conf.c @@ -207,7 +207,7 @@ parse_conf(const char *config_path) char *user = NULL, *host = NULL; if (strrchr(data, '@')) { host = strrchr(data, '@'); - host = 0; + *host = 0; host++; user = data; } else {