bug in authprogs/radius
Erik Klavon
erik at eriq.org
Fri Apr 13 21:17:36 UTC 2007
Hi
The radius authentication program in inn-2.4.3 works fine for me on
FreeBSD with a single radius server in the configuration file. When I
add a second radius server, the program segfaults. I tracked down the
source of the problem to a lack of initialization after a malloc. A
diff of the fix follows.
Erik
diff -u radius.c radius.c.new
--- radius.c Fri Apr 13 14:04:43 2007
+++ radius.c.new Fri Apr 13 14:05:42 2007
@@ -93,6 +93,7 @@
rad_config_t *new;
new = xmalloc(sizeof(rad_config_t));
+ memset(new, '\0', sizeof(rad_config_t));
new->next = NULL;
return new;
--
erik | "It is idle to think that, by means of words, | Maurice
kl at von | any real communication can ever pass | Maeterlinck
eriq.org | from one [human] to another." | Silence
More information about the inn-bugs
mailing list