Pārlūkot izejas kodu

modules_k/presence Fix bug in last commit

Anca Vamanu 13 gadi atpakaļ
vecāks
revīzija
47a0de15f3
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      modules_k/presence/subscribe.c

+ 3 - 0
modules_k/presence/subscribe.c

@@ -1161,6 +1161,9 @@ int get_stored_info(struct sip_msg* msg, subs_t* subs, int* reply_code,
 		lock_release(&subs_htable[i].lock);
 	}
 
+	if(!s)
+		goto not_found;
+
 found_rec:
 
 	LM_DBG("Record found in hash_table\n");