Module: sip-router
Branch: master
Commit: 4464c27f37bf9bc84e96c5898b08dbc3cd1ae3d8
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4464c27…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Mar 20 14:32:28 2012 +0100
core: safer propagation of parameter address
---
xavp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/xavp.c b/xavp.c
index fed62ee..97b545d 100644
--- a/xavp.c
+++ b/xavp.c
@@ -197,7 +197,7 @@ static sr_xavp_t *xavp_get_internal(str *name, sr_xavp_t **list, int
idx, sr_xav
sr_xavp_t *xavp_get(str *name, sr_xavp_t *start)
{
- return xavp_get_internal(name, &start, 0, NULL);
+ return xavp_get_internal(name, (start)?&start:NULL, 0, NULL);
}
sr_xavp_t *xavp_get_by_index(str *name, int idx, sr_xavp_t **start)