fix mem handling for Redis auth strings

Change-Id: I03e3368fe569716d3309cf012ba39bdb2cbe0b35
pull/1072/head
Richard Fuchs 6 years ago
parent 12ac8846de
commit c7904866b0

@ -320,11 +320,11 @@ static int redis_ep_parse(endpoint_t *ep, int *db, char **auth, const char *auth
sl = strchr(str, '@');
if (sl) {
*sl = 0;
*auth = str;
*auth = g_strdup(str);
str = sl+1;
}
else if ((sl = getenv(auth_env)))
*auth = sl;
*auth = g_strdup(sl);
sl = strchr(str, '/');
if (!sl)

Loading…
Cancel
Save