Explorar o código

modules_k/presence Fix bug in last commit

Anca Vamanu %!s(int64=13) %!d(string=hai) anos
pai
achega
47a0de15f3
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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);
 		lock_release(&subs_htable[i].lock);
 	}
 	}
 
 
+	if(!s)
+		goto not_found;
+
 found_rec:
 found_rec:
 
 
 	LM_DBG("Record found in hash_table\n");
 	LM_DBG("Record found in hash_table\n");