secur32: check for variable before freeing it

Henri Verbeet hverbeet at
Tue Oct 13 03:13:04 CDT 2009

2009/10/13 Austin English <austinenglish at>:
>              cred = schan_free_handle(i, SCHAN_HANDLE_CRED);
> -            pgnutls_certificate_free_credentials(cred->credentials);
> +            if(cred) pgnutls_certificate_free_credentials(cred->credentials);
I don't think "cred" is ever supposed to be NULL. Could you add some
traces to see where that handle comes from?

More information about the wine-devel mailing list