Blame 0001-Fix-segv-in-ca_remote_forget_chunk.patch
|
|
cbf5eaa |
From 42b8c68addc8aed0a829b7678ef0ceefd47dc113 Mon Sep 17 00:00:00 2001
|
|
|
cbf5eaa |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
|
cbf5eaa |
Date: Wed, 26 Jul 2017 10:34:03 -0400
|
|
|
cbf5eaa |
Subject: [PATCH] Fix segv in ca_remote_forget_chunk
|
|
|
cbf5eaa |
|
|
|
cbf5eaa |
With gcc-7.1.1-6.fc27:
|
|
|
cbf5eaa |
|
|
|
cbf5eaa |
In file included from ../src/caformat-util.h:7:0,
|
|
|
cbf5eaa |
from ../src/caremote.c:8:
|
|
|
cbf5eaa |
../src/caremote.c: In function 'ca_remote_forget_chunk':
|
|
|
cbf5eaa |
../src/util.h:471:13: error: argument 1 null where non-null expected [-Werror=nonnull]
|
|
|
cbf5eaa |
if (strncmp(s, prefix, l) == 0)
|
|
|
cbf5eaa |
^~~~~~~~~~~~~~~~~~~~~
|
|
|
cbf5eaa |
---
|
|
|
cbf5eaa |
src/caremote.c | 2 +-
|
|
|
cbf5eaa |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
cbf5eaa |
|
|
|
cbf5eaa |
diff --git a/src/caremote.c b/src/caremote.c
|
|
|
cbf5eaa |
index 7d49923980..755c3a6389 100644
|
|
|
cbf5eaa |
--- a/src/caremote.c
|
|
|
cbf5eaa |
+++ b/src/caremote.c
|
|
|
cbf5eaa |
@@ -2729,7 +2729,7 @@ int ca_remote_forget_chunk(CaRemote *rr, const CaChunkID *id) {
|
|
|
cbf5eaa |
|
|
|
cbf5eaa |
p = startswith(qpos, "low-priority/");
|
|
|
cbf5eaa |
if (!p) {
|
|
|
cbf5eaa |
- p = startswith(p, "high-priority/");
|
|
|
cbf5eaa |
+ p = startswith(qpos, "high-priority/");
|
|
|
cbf5eaa |
if (!p) {
|
|
|
cbf5eaa |
r = -EBADMSG;
|
|
|
cbf5eaa |
goto finish;
|
|
|
cbf5eaa |
--
|
|
|
cbf5eaa |
2.13.0
|
|
|
cbf5eaa |
|