masqmail
view src/libident/id_close.c @ 242:bc9d9cd9ee8e
made addr_isequal() and addr_isequal_parent() more flexible
refactored various bits of this stuff.
addr_isequal_alias() had become needless now and was removed.
In fail_msg.c: postmaster is now matched caseless, like required by RFC.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Mon, 25 Oct 2010 17:42:48 -0300 |
parents | 08114f7dcc23 |
children |
line source
1 /*
2 ** id_close.c Close a connection to an IDENT server
3 **
4 ** Author: Peter Eriksson <pen@lysator.liu.se>
5 */
7 #ifdef NeXT3
8 # include <libc.h>
9 #endif
11 #ifdef HAVE_ANSIHEADERS
12 # include <stdlib.h>
13 # include <unistd.h>
14 #endif
16 #define IN_LIBIDENT_SRC
17 #include "ident.h"
19 int
20 id_close __P1(ident_t *, id)
21 {
22 int res;
24 res = close(id->fd);
25 free(id);
27 return res;
28 }