浏览代码

topoh: proper detection of cancel reply for processing

- reported by Alex Balashov
Daniel-Constantin Mierla 9 年之前
父节点
当前提交
0ce66908ee
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/topoh/topoh_mod.c

+ 1 - 1
modules/topoh/topoh_mod.c

@@ -331,7 +331,7 @@ int th_msg_received(void *data)
 		{
 			/* one Via in received reply -- it is for local generated request
 			 * - nothing to unhide unless is CANCEL/ACK */
-			if((get_cseq(&msg)->method_id)&(METHOD_CANCEL))
+			if(!((get_cseq(&msg)->method_id)&(METHOD_CANCEL)))
 				goto done;
 		}