[master] 4d96d154e Make Coverity happy.
Poul-Henning Kamp
phk at FreeBSD.org
Mon Feb 7 09:07:07 UTC 2022
commit 4d96d154eb901b38910556b012a19b8ed15de660
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Feb 7 09:02:16 2022 +0000
Make Coverity happy.
diff --git a/bin/varnishd/storage/mgt_storage_persistent.c b/bin/varnishd/storage/mgt_storage_persistent.c
index f6bf48a8e..77e8049a2 100644
--- a/bin/varnishd/storage/mgt_storage_persistent.c
+++ b/bin/varnishd/storage/mgt_storage_persistent.c
@@ -200,7 +200,7 @@ smp_mgt_init(struct stevedore *parent, int ac, char * const *av)
/* Try to determine correct mmap address */
i = read(sc->fd, &sgn, sizeof sgn);
assert(i == sizeof sgn);
- if (!strcmp(sgn.ident, "SILO"))
+ if (!memcmp(sgn.ident, "SILO", 5))
target = (void*)(uintptr_t)sgn.mapped;
else
target = NULL;
More information about the varnish-commit
mailing list