Преглед изворни кода

core: cmp hdrname fix on checking type of second header

Daniel-Constantin Mierla пре 4 година
родитељ
комит
fa6245ce33
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/core/strutils.c

+ 2 - 2
src/core/strutils.c

@@ -477,7 +477,7 @@ int cmp_hdrname_str(str *s1, str *s2)
 		} else {
 		} else {
 			return 2;
 			return 2;
 		}
 		}
-	} else if(hf1.type!=HDR_OTHER_T) {
+	} else if(hf2.type!=HDR_OTHER_T) {
 		return 2;
 		return 2;
 	}
 	}
 	return cmpi_str(&n1, &n2);
 	return cmpi_str(&n1, &n2);
@@ -508,7 +508,7 @@ int cmp_hdrname_strzn(str *s1, char *s2, size_t len)
 		} else {
 		} else {
 			return 2;
 			return 2;
 		}
 		}
-	} else if(hf1.type!=HDR_OTHER_T) {
+	} else if(hf2.type!=HDR_OTHER_T) {
 		return 2;
 		return 2;
 	}
 	}
 	return cmpi_str(&n1, &n2);
 	return cmpi_str(&n1, &n2);