cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: BUG: free statement in http_negotiate.c giving heap error

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 2 May 2013 22:57:48 +0200 (CEST)

On Thu, 25 Apr 2013, Arunav Sanyal wrote:

> When i said fail, I meant that the pointer is probably not initialized or
> memory for it is probably never allocated. While the build was successful,
> it was a runtime crash during cleanup operations
>
> if(neg_ctx->server_name != GSS_C_NO_NAME){
> gss_release_name(&minor_status, &neg_ctx->server_name);
> }

> Here the point of failure is the conditional(i.e. the if statement). So i am
> guessing something is wrong with neg_ctx->servername. This cleanup needs to
> be fixed

I certainly seems to be what it indicates, yes. What's your proposed fix?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-05-02