Module: kamailio
Branch: master
Commit: cafb1522b2c27aae404d97fe242324423ccdb99b
URL:
https://github.com/kamailio/kamailio/commit/cafb1522b2c27aae404d97fe2423244…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-03-26T11:22:32+01:00
dispatcher: proper check for ds active ping variable
---
Modified: modules/dispatcher/dispatch.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cafb1522b2c27aae404d97fe2423244…
Patch:
https://github.com/kamailio/kamailio/commit/cafb1522b2c27aae404d97fe2423244…
---
diff --git a/modules/dispatcher/dispatch.c b/modules/dispatcher/dispatch.c
index cec1d46..a8061ec 100644
--- a/modules/dispatcher/dispatch.c
+++ b/modules/dispatcher/dispatch.c
@@ -113,7 +113,7 @@ int ds_ping_active_init(void)
*/
int ds_ping_active_get(void)
{
- if(_ds_ping_active!=NULL)
+ if(_ds_ping_active==NULL)
return -1;
return *_ds_ping_active;
}
@@ -123,7 +123,7 @@ int ds_ping_active_get(void)
*/
int ds_ping_active_set(int v)
{
- if(_ds_ping_active!=NULL)
+ if(_ds_ping_active==NULL)
return -1;
*_ds_ping_active = v;
return 0;