This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
rtpengine
mirror of
https://github.com/sipwise/rtpengine
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
822
Wiki
Activity
Browse Source
fix mem handling for Redis auth strings
Change-Id: I03e3368fe569716d3309cf012ba39bdb2cbe0b35
pull/1072/head
Richard Fuchs
5 years ago
parent
12ac8846de
commit
c7904866b0
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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_
str
dup
(
str
)
;
str
=
sl
+
1
;
}
else
if
(
(
sl
=
getenv
(
auth_env
)
)
)
*
auth
=
sl
;
*
auth
=
g_strdup
(
sl
)
;
sl
=
strchr
(
str
,
'
/
'
)
;
if
(
!
sl
)
Write
Preview
Loading…
Cancel
Save