Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Nov 2008 15:37:21 +0300
From:      "zlopi Ru" <zlopi.ru@gmail.com>
To:        freebsd-ports-bugs@freebsd.org
Subject:   net/poptop Segmentation fault () from use options [-h] [--help]
Message-ID:  <85c7fd2c0811200437s16e51d75te1d15e003f100876@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
OS: feebsd 6.2 and freebsd 7.0p5

#pptpd --help
pptpd v1.3.4
Usage: pptpd [options], where options are:

 [-c] [--conf file]        Specifies the config file to read default
                           settings from (default is /usr/local/etc/pptpd.conf).
 [-d] [--debug]            Turns on debugging (to syslog).
 [-e] [--ppp file]         Use alternate pppd binary, default /usr/sbin/ppp.
 [-f] [--fg]               Run in foreground.
 [-h] [--help]             Displays this help message.
 [-i] [--noipparam]        Suppress the passing of the client's IP address
                           to PPP, which is done by default otherwise.
 [-l] [--listen x.x.x.x]   Specifies IP of local interface to listen to.
 [-p] [--pidfile file]     Specifies the file to write the process ID to
                           (default is /var/run/pptpd.pid).
 [-t] [--stimeout seconds] Specifies the timeout for the first packet.
This is a DOS protection
Segmentation fault ()
#
---------------------------------------------------------------------------------------------------------------------
patch looks so:
net/poptop/files/patch-pptpd.c

-       printf("                           (default is 10).\n");
+       printf("                           (default is
%s).\n",STIMEOUT_DEFAULT);


----------------------------------------------------------------------------------------------------------------------
will be more correct:

-       printf("                           (default is 10).\n");
+       printf("                           (default is
%d).\n",STIMEOUT_DEFAULT);


Thanks



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?85c7fd2c0811200437s16e51d75te1d15e003f100876>