Branch: Tag:

2008-05-29

2008-05-29 23:03:47 by Martin Nilsson <mani@lysator.liu.se>

Fixed some dangling pointers.

Rev: src/post_modules/Nettle/cipher.cmod:1.37
Rev: src/post_modules/Nettle/hash.cmod:1.29
Rev: src/post_modules/Nettle/nettle.cmod:1.45
Rev: src/post_modules/Nettle/nt.cmod:1.16

1:   /* hash.cmod -*- c -*- */ - /* $Id: hash.cmod,v 1.28 2008/05/29 22:50:20 nilsson Exp $ */ + /* $Id: hash.cmod,v 1.29 2008/05/29 23:03:47 nilsson Exp $ */      #include "global.h"   #include "interpret.h"
316:    werror("HashState->INIT\n");    THIS->ctx = NULL;    } +     EXIT    gc_trivial;    {
326:    GET_META(Pike_fp->current_object);    assert(meta);    memset(THIS->ctx, 0, meta->context_size); +  THIS->ctx = NULL;    }    }   }