Module: sip-router Branch: 3.1 Commit: a1d8cbbd60dff823546646a3d9c1e3df19913222 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a1d8cbbd...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Marius Zbihlei marius.zbihlei@1and1.ro Date: Tue Oct 9 16:30:24 2012 +0200
core: reset params pointers if there is a failure in parse_params()
- patch by Jijo (cherry picked from commit b12c2df6ccb903e2ca22d34bb968f3ebc2712b89)
---
parser/parse_param.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/parser/parse_param.c b/parser/parse_param.c index 90fe241..dd85155 100644 --- a/parser/parse_param.c +++ b/parser/parse_param.c @@ -550,6 +550,7 @@ int parse_params(str* _s, pclass_t _c, param_hooks_t* _h, param_t** _p) error: if (t) pkg_free(t); free_params(*_p); + *_p = 0; return -2;
ok: