Prechádzať zdrojové kódy

topoh: proper detection of cancel reply for processing

- reported by Alex Balashov
Daniel-Constantin Mierla 9 rokov pred
rodič
commit
0ce66908ee
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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;
 		}