Branch: Tag:

2003-05-08

2003-05-08 11:17:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Pike_fp->current_object can be destructed in the EXIT callback (it's even likely).
get_storage() will in that case fail.

Rev: src/post_modules/Nettle/hash.cmod:1.6

1:   /* hash.cmod -*- c -*- */      #include "global.h" - RCSID("$Id: hash.cmod,v 1.5 2003/05/07 16:12:17 grubba Exp $"); + RCSID("$Id: hash.cmod,v 1.6 2003/05/08 11:17:17 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   
178:    EXIT    {    werror("HashState->EXIT\n"); -  if (THIS->ctx) +  if (THIS->ctx && Pike_fp->current_object->prog)    {    const struct nettle_hash *meta =    GET_META(Pike_fp->current_object);