File: 0001-xml-fix-uninitialized-local-variable-85339.patch

package info (click to toggle)
lasso 2.8.2-9
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 21,624 kB
  • sloc: ansic: 38,304; xml: 23,941; python: 5,116; sh: 4,726; makefile: 1,003; php: 495; perl: 117
file content (25 lines) | stat: -rw-r--r-- 722 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 46caef81855e58629516f09b101e40bf8778981d Mon Sep 17 00:00:00 2001
From: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date: Wed, 24 Jan 2024 18:51:27 +0100
Subject: [PATCH] xml: fix uninitialized local variable (#85339)

---
 lasso/xml/tools.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c
index cec82c53..403d55c7 100644
--- a/lasso/xml/tools.c
+++ b/lasso/xml/tools.c
@@ -2704,7 +2704,7 @@ cleanup:
 xmlSecKeyPtr
 lasso_xmlsec_load_key_info(xmlNode *key_descriptor)
 {
-	xmlSecKeyPtr key, result = NULL;
+	xmlSecKeyPtr key = NULL, result = NULL;
 	xmlNodePtr key_info = NULL;
 	xmlSecKeyInfoCtx ctx = {0};
 	xmlSecKeysMngr *keys_mngr = NULL;
-- 
2.45.2