[sr-dev] [kamailio] jsonrpc-c: fix crash at reconnect_cb if server was never connected (#268)
Victor Seva
notifications at github.com
Thu Jul 30 16:09:53 CEST 2015
```
void reconnect_cb(int fd, short event, void *arg)
...
if (server->ev != NULL) { /* this was never initializated, so we crash!! */
event_del(server->ev);
pkg_free(server->ev);
server->ev = NULL;
}
```
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/268
-- Commit Summary --
* jsonrpc-c: fix crash at reconnect_cb if server was never connected
-- File Changes --
M modules/jsonrpc-c/jsonrpc_io.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/268.patch
https://github.com/kamailio/kamailio/pull/268.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/268
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150730/b6384e2c/attachment.html>
More information about the sr-dev
mailing list