Re: [patch 4/5] iptables: maintain rules in memory even when not writing to disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 21, 2007 at 12:48:01PM +0000, Mark McLoughlin wrote:
> Re-factor things a little for the next patch so that we maintain
> the rules in memory even when we're not going to write them to
> disk.

[...]

>      if (!(r = (char **)realloc(rules->rules, sizeof(char *) * (rules->nrules+1))))
>          return ENOMEM;

  Seems the rules tab is zeroed, but when you extend it you don't
zeroe the new part of the array, but it may not give problem in
practice (or a very hard one to track down ;-)

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]