http_negotiate.c: fix several SPNEGO memory handling issues