From d2a8f02b927c74ef84ffa3443c52743490540732 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 31 Mar 2016 11:07:31 +1100 Subject: [PATCH] Cope with NULL pass in add_userproxy --- src/generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generator.c b/src/generator.c index e0f14369..5d21ed03 100644 --- a/src/generator.c +++ b/src/generator.c @@ -2356,7 +2356,7 @@ static void add_userproxy(ckpool_t *ckp, gdata_t *gdata, const int userid, proxy_instance_t *proxy; char *newurl = strdup(url); char *newauth = strdup(auth); - char *newpass = strdup(pass); + char *newpass = strdup(pass ? pass : ""); int id; mutex_lock(&gdata->lock);