1From 7810d0e3f0bebe58cf6de877cbcb302f073c75e7 Mon Sep 17 00:00:00 2001 2From: Nick Wellnhofer <wellnhofer@aevum.de> 3Date: Mon, 14 Nov 2022 21:05:32 +0100 4Subject: [PATCH 17/28] uri: Allow port without host 5 6Don't set port to -1 when host is missing. Host can be empty according 7to spec. 8 9Fixes #71. 10 11Reference: https://github.com/GNOME/libxml2/commit/f30adb54f55e4e765d58195163f2a21f7ac759fb 12Conflict: NA 13--- 14 uri.c | 2 -- 15 1 file changed, 2 deletions(-) 16 17diff --git a/uri.c b/uri.c 18index ccc26aa..79dc48b 100644 19--- a/uri.c 20+++ b/uri.c 21@@ -768,8 +768,6 @@ xmlParse3986HierPart(xmlURIPtr uri, const char **str) 22 cur += 2; 23 ret = xmlParse3986Authority(uri, &cur); 24 if (ret != 0) return(ret); 25- if (uri->server == NULL) 26- uri->port = -1; 27 ret = xmlParse3986PathAbEmpty(uri, &cur); 28 if (ret != 0) return(ret); 29 *str = cur; 30-- 312.27.0 32 33