Browse Source

fix mem handling for Redis auth strings

Change-Id: I03e3368fe569716d3309cf012ba39bdb2cbe0b35
pull/1072/head
Richard Fuchs 5 years ago
parent
commit
c7904866b0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/main.c

+ 2
- 2
daemon/main.c View File

@ -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