[pptp-server] Fwd: PopTop pptpd.conf read problem
christopher at schulte.org
Thu May 30 17:42:41 CDT 2002
Please follow up to the list and maxheadroom2323 at yahoo.com.
For reference, the website is
>Delivered-To: schulte at clink.schulte.org
>Date: Thu, 30 May 2002 15:30:36 -0700 (PDT)
>From: Max Headroom <maxheadroom2323 at yahoo.com>
>Subject: PopTop pptpd.conf read problem
>To: christopher at schulte.org
>Cc: matthewr at moreton.com.au, tmk at netmagic.net
>X-Virus-Scanned: by AMaViS 0.3.12pre6 on clink.schulte.org
>X-Spam-Status: No, hits=1.0 required=5.0 tests=FROM_ENDS_IN_NUMS version=2.20
>I am sending this to you becuase I haven't been
>able to locate the pptp users group to post
>this message. Could you forward it to the
>We have been building PopToP with UcLibc
>and have found a problem in configfile.c
>which is used to open /etc/pptpd.conf
>and parse it.
>What happens is that if one of the
>vars is in the file but doesn't have
>a value, then a previous value will
>be returned for the var value.
>My /etc/pptpd.conf file looks like this:
>In this case, localip is assigned a value
>of /etc/ppp/options.pptp and pptpd tries
>to do an dns lookup on this string.
>This problem is that with uClibc the sscanf
>function will not put in null( empty strings )
>into the vars if there is not token in the
>parsing string. In configfile.c at about
> if (sscanf(buffer, "%s %s", w, v) > 0 && !strcmp(w,
>will not null out v if there is NO value.
>May I suggest that this variable be memset
>to '\0' before doing ths sscanf?
>Do You Yahoo!?
>Yahoo! - Official partner of 2002 FIFA World Cup
More information about the pptp-server