25 lines
655 B
Diff
25 lines
655 B
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Robbie Harwood <rharwood@redhat.com>
|
||
|
Date: Tue, 8 Mar 2022 12:59:34 -0500
|
||
|
Subject: [PATCH] daemon: remove always-true comparison
|
||
|
|
||
|
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
|
||
|
---
|
||
|
src/daemon.c | 3 +--
|
||
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/src/daemon.c b/src/daemon.c
|
||
|
index 0a66deb..ff88210 100644
|
||
|
--- a/src/daemon.c
|
||
|
+++ b/src/daemon.c
|
||
|
@@ -221,8 +221,7 @@ malformed:
|
||
|
if (!ctx->cms->tokenname)
|
||
|
goto oom;
|
||
|
|
||
|
- if (!tp->value)
|
||
|
- pin = strndup((char *)tp->value, tp->size);
|
||
|
+ pin = strndup((char *)tp->value, tp->size);
|
||
|
if (!pin)
|
||
|
goto oom;
|
||
|
|