The code is correct; void* can be cast to anything, including void**. It's up to the dup function to do the right thing. Just like the compar parameter to qsort :) -- Ticket here: http://rt.openssl.org/Ticket/Display.html?id=2758 Please log in as guest with password guest if prompted