X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Fauth.c;h=2e6b8ca3471bbb57670bb47c662b73ad521608b0;hb=1dc7032b59cc5b91d70076ed228bda8caf65a7f3;hp=6ec3c1b4fe11a6db33a2019ed8b76add8566fdbc;hpb=ba5e3af4ea19e1d20c80941c077039871ec84258;p=apps%2Fmadmutt.git diff --git a/imap/auth.c b/imap/auth.c index 6ec3c1b..2e6b8ca 100644 --- a/imap/auth.c +++ b/imap/auth.c @@ -15,11 +15,13 @@ # include "config.h" #endif -#include "lib/mem.h" -#include "lib/intl.h" +#include + +#include #include "lib/debug.h" #include "mutt.h" +#include "ascii.h" #include "imap_private.h" #include "auth.h" @@ -38,7 +40,7 @@ static imap_auth_t imap_authenticators[] = { #endif {imap_auth_login, "login"}, - {NULL} + {NULL, NULL} }; /* imap_authenticate: Attempt to authenticate using either user-specified @@ -70,7 +72,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; } @@ -78,7 +80,7 @@ int imap_authenticate (IMAP_DATA * idata) } } - mem_free (&methods); + p_delete(&methods); } else { /* Fall back to default: any authenticator */