From 6582955cfa4158d889bf96da9f91e8b8bbbfae82 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 14 Apr 2024 10:36:55 +0200 Subject: [PATCH] Update src/Cedar/Protocol.c Co-authored-by: Davide Beatrici --- src/Cedar/Protocol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Cedar/Protocol.c b/src/Cedar/Protocol.c index 3829b563..a0da6c70 100644 --- a/src/Cedar/Protocol.c +++ b/src/Cedar/Protocol.c @@ -6784,7 +6784,8 @@ PACK *PackLoginWithOpenVPNCertificate(char *hubname, char *username, X *x) UniToStr(cn_username, sizeof(cn_username), x->subject_name->CommonName); - if(strchr(cn_username, '@') != NULL) + if (strchr(cn_username, '@') != NULL) + { PackAddStr(p, "username", strtok(cn_username, "@")); PackAddStr(p, "hubname", strtok(NULL, ""));