summaryrefslogtreecommitdiff
path: root/0174-bugfix-for-parse_http_header.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-11 14:20:43 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-11 14:20:43 +0000
commit2295e96f69a8c13751ba69ea9176b0599c0909a8 (patch)
treec908aaed1b7f92c2e5aaa55ac6981ebe00dfe9bf /0174-bugfix-for-parse_http_header.patch
parentb7a2cf915b9d2c7e530c02097631b69bacc0e93c (diff)
automatic import of iSuladopeneuler24.03_LTS
Diffstat (limited to '0174-bugfix-for-parse_http_header.patch')
-rw-r--r--0174-bugfix-for-parse_http_header.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/0174-bugfix-for-parse_http_header.patch b/0174-bugfix-for-parse_http_header.patch
new file mode 100644
index 0000000..c30030b
--- /dev/null
+++ b/0174-bugfix-for-parse_http_header.patch
@@ -0,0 +1,25 @@
+From 7a3d70dba97facedf1394e65a80f7cc12be8273c Mon Sep 17 00:00:00 2001
+From: zhongtao <zhongtao17@huawei.com>
+Date: Wed, 18 Dec 2024 16:37:33 +1400
+Subject: [PATCH 08/11] bugfix for parse_http_header
+
+Signed-off-by: zhongtao <zhongtao17@huawei.com>
+---
+ src/daemon/modules/image/oci/registry/registry_apiv2.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/daemon/modules/image/oci/registry/registry_apiv2.c b/src/daemon/modules/image/oci/registry/registry_apiv2.c
+index 5d83b425..7f33646d 100644
+--- a/src/daemon/modules/image/oci/registry/registry_apiv2.c
++++ b/src/daemon/modules/image/oci/registry/registry_apiv2.c
+@@ -61,6 +61,7 @@ static void set_body_null_if_exist(char *message)
+ static int parse_http_header(char *resp_buf, size_t buf_size, struct parsed_http_message *message)
+ {
+ char *real_message = NULL;
++ int ret = 0;
+
+ if (resp_buf == NULL || message == NULL) {
+ ERROR("Invalid NULL param");
+--
+2.23.0
+