浏览代码

dialog: proper detection of keepalive flag for destination

- credit to Bill Radis, FS#416, for report and fix
Daniel-Constantin Mierla 11 年之前
父节点
当前提交
933a621f40
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/dialog/dlg_hash.c

+ 1 - 1
modules/dialog/dlg_hash.c

@@ -132,7 +132,7 @@ int dlg_ka_add(dlg_cell_t *dlg)
 
 
 	if(dlg_ka_interval<=0)
 	if(dlg_ka_interval<=0)
 		return 0;
 		return 0;
-	if(!(dlg->iflags & (DLG_IFLAG_KA_SRC | DLG_IFLAG_KA_SRC)))
+	if(!(dlg->iflags & (DLG_IFLAG_KA_SRC | DLG_IFLAG_KA_DST)))
 		return 0;
 		return 0;
 
 
 	dka = (dlg_ka_t*)shm_malloc(sizeof(dlg_ka_t));
 	dka = (dlg_ka_t*)shm_malloc(sizeof(dlg_ka_t));