INN commit: trunk/nnrpd (post.c)
INN Commit
rra at isc.org
Wed Nov 4 22:01:50 UTC 2009
Date: Wednesday, November 4, 2009 @ 14:01:50
Author: iulius
Revision: 8706
Fix a memory leak in the POST command when the Newsgroups:
header is invalid.
Modified:
trunk/nnrpd/post.c
--------+
post.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Modified: post.c
===================================================================
--- post.c 2009-11-04 22:00:37 UTC (rev 8705)
+++ post.c 2009-11-04 22:01:50 UTC (rev 8706)
@@ -671,8 +671,10 @@
p = HDR(HDR__CONTROL);
IsNewgroup = (p && strncmp(p, "newgroup", 8) == 0);
groups = xstrdup(hdr);
- if ((p = strtok(groups, NGSEPS)) == NULL)
+ if ((p = strtok(groups, NGSEPS)) == NULL) {
+ free(groups);
return "Can't parse Newsgroups: header";
+ }
Error[0] = '\0';
/* Reject all articles with Approved: headers unless the user is allowed to
More information about the inn-committers
mailing list