Jelajahi Sumber

dialog: proper detection of keepalive flag for destination

- credit to Bill Radis, FS#416, for report and fix
Daniel-Constantin Mierla 11 tahun lalu
induk
melakukan
933a621f40
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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)
 		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));