Browse code

core: cmp hdrname fix on checking type of second header

Daniel-Constantin Mierla authored on 01/08/2021 07:41:30
Showing 1 changed files
... ...
@@ -477,7 +477,7 @@ int cmp_hdrname_str(str *s1, str *s2)
477 477
 		} else {
478 478
 			return 2;
479 479
 		}
480
-	} else if(hf1.type!=HDR_OTHER_T) {
480
+	} else if(hf2.type!=HDR_OTHER_T) {
481 481
 		return 2;
482 482
 	}
483 483
 	return cmpi_str(&n1, &n2);
... ...
@@ -508,7 +508,7 @@ int cmp_hdrname_strzn(str *s1, char *s2, size_t len)
508 508
 		} else {
509 509
 			return 2;
510 510
 		}
511
-	} else if(hf1.type!=HDR_OTHER_T) {
511
+	} else if(hf2.type!=HDR_OTHER_T) {
512 512
 		return 2;
513 513
 	}
514 514
 	return cmpi_str(&n1, &n2);