2
0
Эх сурвалжийг харах

dialog: proper detection of keepalive flag for destination

- credit to Bill Radis, FS#416, for report and fix
Daniel-Constantin Mierla 11 жил өмнө
parent
commit
933a621f40

+ 1 - 1
modules/dialog/dlg_hash.c

@@ -132,7 +132,7 @@ int dlg_ka_add(dlg_cell_t *dlg)
 
 	if(dlg_ka_interval<=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;
 
 	dka = (dlg_ka_t*)shm_malloc(sizeof(dlg_ka_t));