]> git.tuebingen.mpg.de Git - paraslash.git/commit
Fix com_init() in case arguments are given.
authorAndre Noll <maan@systemlinux.org>
Sat, 11 Jul 2009 19:01:27 +0000 (21:01 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 11 Jul 2009 19:01:27 +0000 (21:01 +0200)
commit133cbbe403c850da3efdaa6dcfc0cf55145d0aa2
tree2cacf03b1113eaab13c8cd702ae28dfc0086f051
parent2a4d7bb5f5cecdbcbda6b9f9b531c919ecc6b161
Fix com_init() in case arguments are given.

As the ->name field of struct afs_table was only initialized in the afs process,
com_init(), which gets forked from the server process, did not see the table
names and would segfault due to a NULL pointer dereference if table names
were given as arguments.

Fix it by initializing the ->name fields in the definition of the afs_tables array.

This bug was introduced in commit 53d503ce back in 2007...
afs.c
aft.c
attribute.c
blob.c