eBPF-based security platform
testing: find the quote field's end in the writable buffer
Daniel Borkmann6365ea8cecef
diff --git a/testing/helper/test-keepalive-quote.c b/testing/helper/test-keepalive-quote.cindex 2d208f9e..9e2b1bae 100644--- a/testing/helper/test-keepalive-quote.c+++ b/testing/helper/test-keepalive-quote.c@@ -38,7 +38,7 @@ static int quote_values(char *quote, const char *values[QUOTE_FIELDS])if (strncmp(field, keys[i], n))return -EINVAL;values[i] = field + n;- end = strchr(values[i], ';');+ end = strchr(field + n, ';');if (i + 1 == QUOTE_FIELDS) {if (end)return -EINVAL;