Module: kamailio
Branch: master
Commit: de4a32b02ddaf94b0ad4ed06a0b4fa5bb9c1a10e
URL:
https://github.com/kamailio/kamailio/commit/de4a32b02ddaf94b0ad4ed06a0b4fa5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-12-08T09:27:11+01:00
rabbitmq: proper test of pv cache lookup return
---
Modified: src/modules/rabbitmq/rabbitmq.c
---
Diff:
https://github.com/kamailio/kamailio/commit/de4a32b02ddaf94b0ad4ed06a0b4fa5…
Patch:
https://github.com/kamailio/kamailio/commit/de4a32b02ddaf94b0ad4ed06a0b4fa5…
---
diff --git a/src/modules/rabbitmq/rabbitmq.c b/src/modules/rabbitmq/rabbitmq.c
index 4e6e390d18..1e5ae7f351 100644
--- a/src/modules/rabbitmq/rabbitmq.c
+++ b/src/modules/rabbitmq/rabbitmq.c
@@ -507,7 +507,7 @@ static int ki_rabbitmq_publish_consume(sip_msg_t *msg, str *exchange,
dst = pv_cache_get(dpv);
- if(dpv==NULL) {
+ if(dst==NULL) {
LM_ERR("failed getting pv: %.*s\n", dpv->len, dpv->s);
return -1;
}
@@ -669,4 +669,4 @@ int mod_register(char *path, int *dlflags, void *p1, void *p2)
{
sr_kemi_modules_add(sr_kemi_rabbitmq_exports);
return 0;
-}
\ No newline at end of file
+}