From: Jean-Marc Pigeon (Delson) Date: Wed, 9 Jul 2025 14:42:32 +0000 (-0400) Subject: memory leak now OK within digest-md5 X-Git-Tag: tag-0.13~8 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=d14451bf702e540bb5dfcef662b2c9317b3ecf78;p=jmp%2Fmailleur memory leak now OK within digest-md5 --- diff --git a/lib/lvleml.c b/lib/lvleml.c index 2b20068..2e3b47b 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -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; diff --git a/lib/unidig.c b/lib/unidig.c index 21084c7..e746563 100644 --- a/lib/unidig.c +++ b/lib/unidig.c @@ -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); diff --git a/sql/mailleur.sql b/sql/mailleur.sql index abf1cb6..9624da2 100644 --- a/sql/mailleur.sql +++ b/sql/mailleur.sql @@ -42,6 +42,11 @@ #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()