]> arthur.barton.de Git - netatalk.git/commit
Fix a crash in of_closefork(), bug #551
authorRalph Boehme <rb@sernet.de>
Thu, 20 Feb 2014 16:06:34 +0000 (17:06 +0100)
committerRalph Boehme <rb@sernet.de>
Thu, 20 Feb 2014 16:18:55 +0000 (17:18 +0100)
commit40ec4cf6aa9f58d91a7b11f562163b0ffb3b86f4
treea289bf64b4ed2e180ea5ffc4f18297a3a2b9d1a6
parent0d16de7d14b25bfdd9b572b49aa4868056d4d1a6
Fix a crash in of_closefork(), bug #551

Apparently dirlookup() might return NULL when trying to query the did
of an open fork:

    dir = dirlookup(ofork->of_vol, ofork->of_did);

Add a NULL check before using the result.
NEWS
etc/afpd/ofork.c