cryptsetup/0004-Update-file-cryptsetup-ssh.c.patch
wangzhiqiang fe24de52c5 fix potential null pointer dereference.
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
(cherry picked from commit 2c6c83a5643310b95c9d6381803d01062afd0a74)
2023-03-22 16:28:51 +08:00

25 lines
596 B
Diff

From 1f805cb35ae1d2ec9d19d8b9bad0bda98cbdc938 Mon Sep 17 00:00:00 2001
From: wangzhiqiang <zhiqiangwang12_4@163.com>
Date: Fri, 10 Feb 2023 16:48:19 +0000
Subject: [PATCH] Update file cryptsetup-ssh.c
---
tokens/ssh/cryptsetup-ssh.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/tokens/ssh/cryptsetup-ssh.c b/tokens/ssh/cryptsetup-ssh.c
index efc38f73..e356898f 100644
--- a/tokens/ssh/cryptsetup-ssh.c
+++ b/tokens/ssh/cryptsetup-ssh.c
@@ -78,7 +78,6 @@ static int token_add(
goto out;
}
- r = -EINVAL;
jobj = json_object_new_object();
if (!jobj) {
r = -ENOMEM;
--
2.33.0