瀏覽代碼

modules_k/presence Fix bug in last commit

Anca Vamanu 13 年之前
父節點
當前提交
47a0de15f3
共有 1 個文件被更改,包括 3 次插入0 次删除
  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");