diff --git a/daemon/main.c b/daemon/main.c index 42c3f42e4..fd3ba17f8 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -334,7 +334,7 @@ static int redis_ep_parse(endpoint_t *ep, int *db, char **auth, const char *auth char *sl; long l; - sl = strchr(str, '@'); + sl = strrchr(str, '@'); if (sl) { *sl = 0; *auth = g_strdup(str);