Просмотр исходного кода

ims_registrar_pcscf: Bug-Fix for pcscf_assert_identity (minor)

Carsten Bock 12 лет назад
Родитель
Сommit
9a2b943bfc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      modules/ims_registrar_pcscf/service_routes.c

+ 1 - 1
modules/ims_registrar_pcscf/service_routes.c

@@ -410,7 +410,7 @@ int assert_identity(struct sip_msg* _m, udomain_t* _d, str identity) {
 		/* Check length: */
 		/* Check length: */
 		if (identity.len == p->public_identity.len) {
 		if (identity.len == p->public_identity.len) {
 			/* Check contents: */
 			/* Check contents: */
-			if (strncasecmp(identity.s, p->public_identity.s, identity.len) != 0) {
+			if (strncasecmp(identity.s, p->public_identity.s, identity.len) == 0) {
 				LM_DBG("Match!\n");
 				LM_DBG("Match!\n");
 				goto success;
 				goto success;
 			}
 			}