Re: [lxc-devel] [PATCH] fix segfault in capabilities drop code

2010-01-23 Thread Daniel Lezcano
Sven Wegener wrote: > On Fri, 22 Jan 2010, Sven Wegener wrote: > > >> the capabilities list contains a terminating NULL entry and looping over >> all entries by index results in a segfault on the last entry, if the >> capability in the config is invalid. switch to looping by pointer like >> the

Re: [lxc-devel] [PATCH] fix segfault in capabilities drop code

2010-01-23 Thread Sven Wegener
On Fri, 22 Jan 2010, Sven Wegener wrote: > the capabilities list contains a terminating NULL entry and looping over > all entries by index results in a segfault on the last entry, if the > capability in the config is invalid. switch to looping by pointer like > the mount option code does. Oops, i

[lxc-devel] [PATCH] fix segfault in capabilities drop code

2010-01-22 Thread Sven Wegener
the capabilities list contains a terminating NULL entry and looping over all entries by index results in a segfault on the last entry, if the capability in the config is invalid. switch to looping by pointer like the mount option code does. Signed-off-by: Sven Wegener --- src/lxc/conf.c | 10 +