summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Moizard <amoizard@gmail.com>2017-04-14 13:10:44 +0200
committerAymeric Moizard <amoizard@gmail.com>2017-04-14 13:10:44 +0200
commitef297a510f2c710bcd754a30fce90ac2a7d7c929 (patch)
tree8f4993b3c00db4717f6cf7137cd90bab8e3f7def
parent92a531a0c7e7d45938dcb907566f12b301141fc0 (diff)
downloadexosip-ef297a510f2c710bcd754a30fce90ac2a7d7c929.tar.gz
fix _eXosip_match_notify_for_subscribe mixing pointers check (minor patch fixing only logs in theory)
-rw-r--r--src/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udp.c b/src/udp.c
index 3ddd657..2d76ce3 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -722,11 +722,11 @@ _eXosip_match_notify_for_subscribe (eXosip_subscribe_t * js, osip_message_t * no
osip_from_param_get_byname (out_sub->from, "tag", &tag_from);
osip_from_param_get_byname (notify->to, "tag", &tag_to);
- if (tag_to == NULL || tag_to->gvalue == NULL) {
+ if (tag_from == NULL || tag_from->gvalue == NULL) {
OSIP_TRACE (osip_trace (__FILE__, __LINE__, OSIP_ERROR, NULL, "Uncompliant user agent: no tag in from of outgoing request\n"));
return OSIP_SYNTAXERROR;
}
- if (tag_from == NULL || tag_to->gvalue == NULL) {
+ if (tag_to == NULL || tag_to->gvalue == NULL) {
OSIP_TRACE (osip_trace (__FILE__, __LINE__, OSIP_ERROR, NULL, "Uncompliant user agent: no tag in to of incoming request\n"));
return OSIP_SYNTAXERROR;
}