X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fpopsbr.c;h=c566264d3f0f7ea40ee0dbe7bd53583d5d2d5a6f;hb=015e83362f21a061bf268b878693d72309c21e55;hp=feb7aa0df429ce30b84e4941f5e5457ee63a849c;hpb=4eaf25e2a1d634b6f7bfa01a96e6e86768837e9b;p=mmh diff --git a/uip/popsbr.c b/uip/popsbr.c index feb7aa0..c566264 100644 --- a/uip/popsbr.c +++ b/uip/popsbr.c @@ -343,12 +343,12 @@ sasl_get_user(void *context, int id, const char **result, unsigned *len) static int sasl_get_pass(sasl_conn_t *conn, void *context, int id, sasl_secret_t **psecret) { - NMH_UNUSED (conn); - struct pass_context *p_context = (struct pass_context *) context; char *pass = NULL; int len; + NMH_UNUSED (conn); + if (! psecret || id != SASL_CB_PASS) return SASL_BADPARAM; @@ -418,14 +418,13 @@ int pop_init (char *host, char *port, char *user, char *pass, char *proxy, int snoop, int sasl, char *mech) { + int fd1, fd2; + char buffer[BUFSIZ]; #ifndef CYRUS_SASL NMH_UNUSED (sasl); NMH_UNUSED (mech); #endif /* ! CYRUS_SASL */ - int fd1, fd2; - char buffer[BUFSIZ]; - if (proxy && *proxy) { int pid; int inpipe[2]; /* for reading from the server */