Menu

#1 Uninitialized variable *opts

open
nobody
None
5
2005-04-07
2005-04-07
Anonymous
No

After patching pppd in module auth.c:1811
variable *opts became uninitialized,
because function
/* ret = scan_authfile(f, client, server, secbuf,
&addrs, &opts, filename, 0);
fclose(f);
*/
where it got value is commented out!
In RedHat 7.3 cause pppd exit 11.

Solution:
replace line 1811:
- struct wordlist *addrs, *opts;
+ struct wordlist *addrs, *opts=NULL;

After that all works fine!

please notify me on update
enic (dog:-) telecom.by

Discussion


Log in to post a comment.