~sircmpwn/gmni-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH gmnisrv v2] serve: make hostname matching case-insensitive

Details
Message ID
<20211115182530.2343750-1-jb55@jb55.com>
DKIM signature
missing
Download raw message
Patch: +2 -1
Reported-by: James Tomasino <james@tomasino.org>
Signed-off-by: William Casarin <jb55@jb55.com>
---
 src/serve.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/serve.c b/src/serve.c
index bcbef5c..683e8fa 100644
--- a/src/serve.c
+++ b/src/serve.c
@@ -8,6 +8,7 @@
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
@@ -637,7 +638,7 @@ request_validate(struct gmnisrv_client *client, char **path)
		client_submit_response(client,
			GEMINI_STATUS_BAD_REQUEST, error, NULL);
		goto exit;
	} else if (strcmp(part, client->host->hostname) != 0) {
	} else if (strcasecmp(part, client->host->hostname) != 0) {
		free(part);
		const char *error = "Protocol error: hostname does not match SNI";
		client_submit_response(client,
-- 
2.32.0
Details
Message ID
<CFQMI76OHUCN.2Q4QEQ3DXW9QC@taiga>
In-Reply-To
<20211115182530.2343750-1-jb55@jb55.com> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/gmnisrv
   5783501..1925bc3  master -> master
Reply to thread Export thread (mbox)