[sr-dev] git:master: core: reset params pointers if there is a failure in parse_params()
Daniel-Constantin Mierla
miconda at gmail.com
Tue Oct 9 16:31:11 CEST 2012
Module: sip-router
Branch: master
Commit: b12c2df6ccb903e2ca22d34bb968f3ebc2712b89
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b12c2df6ccb903e2ca22d34bb968f3ebc2712b89
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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:
More information about the sr-dev
mailing list