[pptp-server] Fwd: PopTop pptpd.conf read problem

Christopher Schulte 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 
http://lists.schulte.org/mailman/listinfo/pptp-server

--Chris

>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
>X-Spam-Level: *
>
>Christopher,
>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
>right people?
>----------------------------------------------
>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:
>
>option /etc/ppp/options.pptp
>localip
>remoteip
>
>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
>line 63:
>  if (sscanf(buffer, "%s %s", w, v) > 0 && !strcmp(w,
>keyword))
>
>will not null out v if there is NO value.
>
>May I suggest that this variable be memset
>to '\0' before doing ths sscanf?
>
>Thanks.
>  MH
>
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! - Official partner of 2002 FIFA World Cup
>http://fifaworldcup.yahoo.com




More information about the pptp-server mailing list