From d0b1b52d511a7c1df138a9d72101c1be597f0145 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Tue, 8 Jul 2025 16:18:23 -0400 Subject: [PATCH] Authentication login is working (no leak) --- lib/lvleml.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/lvleml.c b/lib/lvleml.c index 920403f..8b02541 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -463,16 +463,14 @@ if (decoded!=(char *)0) { /* mode, return goodpass true if successful */ /* */ /********************************************************/ -static _Bool get_auth_login(CONTYP *contact,char **rmtpass) +static void get_auth_login(CONTYP *contact,char **rmtpass) { static char *logdat[]={"VXNlcm5hbWU6", //Username: in B64 "UGFzc3dvcmQ6", //Password: in B64 (char *)0}; -_Bool goodpass; char local[200]; -goodpass=false; (void) memset(local,'\000',sizeof(local)); for (int i=0;i<2;i++) { char *line; @@ -495,8 +493,7 @@ for (int i=0;i<2;i++) { line=rou_freestr(line); } if (strlen(local)>0) - goodpass=checklogin(contact,rmtpass,local); -return goodpass; + contact->authenticated=checklogin(contact,rmtpass,local); } /* ^L -- 2.47.3