浏览代码

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