access-lookup.c revision 2454dfa32c93c20a8522c6ed42fe057baaac9f9a
/* Copyright (c) 2010-2017 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "net.h"
#include "fdpass.h"
#include "access-lookup.h"
#include <unistd.h>
struct access_lookup {
int refcount;
int fd;
char *path;
void *context;
};
{
unsigned char buf[3];
if (ret < 0) {
} else if (ret == 0) {
/* connection close -> no success */
/* no success */
} else {
}
}
{
}
struct access_lookup *
{
struct access_lookup *lookup;
const char *cmd;
int fd;
if (fd == -1) {
return NULL;
}
if (ret < 0)
else
i_close_fd(&fd);
return NULL;
}
return lookup;
}
{
return;
}