fixed a bug with possible segfault in tcpconnect code, updated radsecproxy.1
authorvenaas <venaas>
Tue, 17 Feb 2009 15:02:46 +0000 (15:02 +0000)
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Tue, 17 Feb 2009 15:02:46 +0000 (15:02 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@476 e88ac4ed-0b26-0410-9574-a7f39faa03bf

radsecproxy.1
util.c

index f4d7760..8fc21af 100644 (file)
@@ -1,10 +1,11 @@
-.TH radsecproxy 1 "2 October 2008"
+.TH radsecproxy 1 "17 February 2009"
 
 .SH "NAME"
 radsecproxy - a generic RADIUS proxy that provides both RADIUS UDP and TCP/TLS (RadSec) transport.
 
 .SH "SYNOPSIS"
-radsecproxy [ -c configfile ] [ -d debuglevel ] [ -f ] [ -p ] [ -v ]
+.HP 12
+radsecproxy [-c configfile] [-d debuglevel] [-f] [-i pidfile] [-p] [-v]
 .sp
 
 .SH "DESCRIPTION"
@@ -31,6 +32,7 @@ a proxy on a site boundary. Since the proxy \fBsupports both IPv4
 and IPv6\fR, it could also be used to allow communication in cases
 where some RADIUS nodes use only IPv4 and some only IPv6.
 
+.SH "OPTIONS"
 .TP
 .B -f
 .sp
@@ -75,6 +77,32 @@ information and exit.
 This option allows you to specify which config file to use. This is useful
 if you want to use a config file that is not in any of the default locations.
 
+.TP
+.B -i <pid file path>
+.sp
+\fIPID file path\fR
+.sp
+This option tells the proxy to create a PID file with the specified path.
+
+.SH "SIGNALS"
+The proxy generally exits on all signals. The exceptions are listed below.
+
+.TP
+.B SIGHUP
+.sp
+When logging to a file, this signal forces a reopen of the log file.
+
+.TP
+.B SIGPIPE
+.sp
+This signal is ignored.
+
+.SH "FILES"
+.TP
+.B /etc/radsecproxy.conf
+.sp
+The default configuration file.
+
 .SH "SEE ALSO"
 radsecproxy.conf(5), RadSec internet draft
 http://tools.ietf.org/html/draft-ietf-radext-radsec
diff --git a/util.c b/util.c
index f41bf65..ca16d41 100644 (file)
--- a/util.c
+++ b/util.c
@@ -195,7 +195,7 @@ int connecttcp(struct addrinfo *addrinfo, struct addrinfo *src, uint16_t timeout
 
     s = -1;
     if (timeout) {
-       if (res && res->ai_next && timeout > 5)
+       if (addrinfo && addrinfo->ai_next && timeout > 5)
            timeout = 5;
        to.tv_sec = timeout;
        to.tv_usec = 0;