Module: sip-router
Branch: master
Commit: b12c2df6ccb903e2ca22d34bb968f3ebc2712b89
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b12c2df…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Oct 9 16:30:24 2012 +0200
core: reset params pointers if there is a failure in parse_params()
- patch by Jijo
---
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 845292a..16e27d5 100644
--- a/parser/parse_param.c
+++ b/parser/parse_param.c
@@ -555,6 +555,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: