[vpn-devel] [Patch] qikea fails to list connections on Linux

Stefan Brüns stefan.bruens at rwth-aachen.de
Thu Jul 3 01:55:53 CDT 2014


Hi,

the directory listing code accesses the dirent structure after closedir. As 
the directory stream is invalidated, the dirent structure becomes invalid as 
well.

As a result qikea either crashes or is unable to list defined connections.

This can be fixed by either using readdir_r(...) or by delaying closedir after
the read access. I have chosen the second approach.

Kind regards,

Stefan

-- 
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
phone: +49 241 53809034     mobile: +49 151 50412019
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kontacta19940_.tmp
Type: text/x-patch
Size: 501 bytes
Desc: not available
URL: <https://lists.shrew.net/pipermail/vpn-devel/attachments/20140703/e14e8d0c/attachment.bin>


More information about the vpn-devel mailing list