]> SAFE projects GIT repository - jmp/mailleur/commitdiff
memory leak now OK within digest-md5
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 9 Jul 2025 14:42:32 +0000 (10:42 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 9 Jul 2025 14:42:32 +0000 (10:42 -0400)
lib/lvleml.c
lib/unidig.c
sql/mailleur.sql

index 2b20068c8f32f8e7aaa78b08ab06db886e2f6b4d..2e3b47b7367457def2889e0bc231e557da4afb85 100644 (file)
@@ -613,6 +613,7 @@ while (proceed==true) {
       char *HAS;
       char *rspauth;
       char *b64;
+
       if ((HAS=dig_hashresp(resp,"",hash))==(char *)0) {
         (void) rou_alert(0,"%s Unable to get the hash rspauth (Bug!)",OPEP);
         break;
index 21084c7ca76d4a3e96c92eb5fd2b382335646f46..e74656341f00331ad77839bcced4ef218b3e3e1a 100644 (file)
@@ -443,20 +443,6 @@ proceed=(resp!=(RSPTYP *)0);
 while (proceed==true) {
   switch (phase) {
     case 0      :       //computing A1 from data-base contents
-      {
-      MD5TYP *AX;
-      char *HAX;
-      char seq[300];
-
-      (void) snprintf(seq,sizeof(seq),"%s:%s:%s",
-                                      "webmaster@example.com",
-                                      REALM,
-                                      "webmaster");
-      AX=dig_hashmd5((unsigned char *)seq,strlen(seq));
-      HAX=cnv_tohexa((char *)AX,sizeof(MD5TYP));
-      (void) rou_alert(0,"%s JMPDBG CAL-HASH=<%s>",OPEP,HAX);
-      }
-      (void) rou_alert(0,"%s JMPDBG POS-HASH=<%s>",OPEP,hash);
       A1=dig_get_plain_md5(hash);
       if (A1==(MD5TYP *)0) {
         (void) rou_alert(0,"%s Unable to convert hash=<%s>",OPEP,hash);
index abf1cb651ae113c5154710628b629561649f5255..9624da2b0b56abfc48371d1b0fc7574e72f10900 100644 (file)
 #define CRYPTED         MEDIUMBLOB
 #endif
 
+//defining the password trigger according database type
+//Caution this REALM value MUST be the same as defined
+//in mailleur.conf
+#define        REALM   'mailleur-email'
+
 /********************************************************/
 /********************************************************/
 /*                                                     */
@@ -64,8 +69,6 @@ CREATE TABLE emails   (
 GRANT SELECT,INSERT,UPDATE,DELETE      ON emails TO mailapache;
 GRANT SELECT                           ON emails TO maildove;
 
-//defining the password trigger according database type
-#define        REALM   'mailleur-email'
 
 #ifdef POSTGRESQL
 CREATE FUNCTION updpass()