Properly check the return values of the proxy certificate verification functions. One '!' really makes the difference.