[sr-dev] git:3.1: core: reset params pointers if there is a failure in parse_params( )
Marius Zbihlei
marius.zbihlei at 1and1.ro
Wed Oct 10 10:20:39 CEST 2012
Module: sip-router
Branch: 3.1
Commit: a1d8cbbd60dff823546646a3d9c1e3df19913222
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a1d8cbbd60dff823546646a3d9c1e3df19913222
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Marius Zbihlei <marius.zbihlei at 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:
More information about the sr-dev
mailing list