Browse Source

Cope with NULL pass in add_userproxy

master
Con Kolivas 9 years ago
parent
commit
d2a8f02b92
  1. 2
      src/generator.c

2
src/generator.c

@ -2356,7 +2356,7 @@ static void add_userproxy(ckpool_t *ckp, gdata_t *gdata, const int userid,
proxy_instance_t *proxy; proxy_instance_t *proxy;
char *newurl = strdup(url); char *newurl = strdup(url);
char *newauth = strdup(auth); char *newauth = strdup(auth);
char *newpass = strdup(pass); char *newpass = strdup(pass ? pass : "");
int id; int id;
mutex_lock(&gdata->lock); mutex_lock(&gdata->lock);

Loading…
Cancel
Save