Hi all
In a plugin I wrote I'm trying to add "*" as the valid address the peer may
use but I'm not very successful.
With this code in pap_auth_hook() it segfaults:
-----
struct wordlist *ap;
ap = malloc (sizeof (struct wordlist));
ap->word = strdup ("*");
if (paddrs)
*paddrs = ap; /* Without this I get: Unauthorized remote IP address */
*msgp = "Login ok";
----
It's definitely segfaulting on "*paddrs = ap;". But why? This is the way it
is done in pppd too (when reading from the pap-secrets file);
I would really appreciate any feedback.
Thanks
--
------------------
Sarel Botha
[EMAIL PROTECTED]
------------------
99 little bugs in the code, 99 bugs in the code,
fix one bug, compile it again...
101 little bugs in the code....
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]