X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Fauth.c;h=4861fbbe9c85c854d0d03890fb92f287ef3e868a;hb=49f1156410e9a037404101696d37b2c0d5c67564;hp=23473e192c5d56589a2a0a00075f2e5bc27dba36;hpb=bbc4fd52516a8afefbd14c77e34f8389d6f0a6ed;p=apps%2Fmadmutt.git diff --git a/imap/auth.c b/imap/auth.c index 23473e1..4861fbb 100644 --- a/imap/auth.c +++ b/imap/auth.c @@ -15,6 +15,8 @@ # include "config.h" #endif +#include + #include "lib/mem.h" #include "lib/intl.h" #include "lib/debug.h" @@ -39,7 +41,7 @@ static imap_auth_t imap_authenticators[] = { #endif {imap_auth_login, "login"}, - {NULL} + {NULL, NULL} }; /* imap_authenticate: Attempt to authenticate using either user-specified @@ -71,7 +73,7 @@ int imap_authenticate (IMAP_DATA * idata) !ascii_strcasecmp (authenticator->method, method)) if ((r = authenticator->authenticate (idata, method)) != IMAP_AUTH_UNAVAIL) { - mem_free (&methods); + p_delete(&methods); return r; } @@ -79,7 +81,7 @@ int imap_authenticate (IMAP_DATA * idata) } } - mem_free (&methods); + p_delete(&methods); } else { /* Fall back to default: any authenticator */