From: Fredrik Tolf Date: Thu, 5 Jun 2008 13:32:29 +0000 (+0200) Subject: Release the authmech before starting to free data in an authhandle. X-Git-Tag: 1.3~11^2^2~4 X-Git-Url: http://dolda2000.com/gitweb/?p=doldaconnect.git;a=commitdiff_plain;h=bec4d3b61d05dfc014fd9142d8ea2ec1d0bd5a1d Release the authmech before starting to free data in an authhandle. --- diff --git a/daemon/auth.c b/daemon/auth.c index 470c985..d8c7a35 100644 --- a/daemon/auth.c +++ b/daemon/auth.c @@ -80,10 +80,10 @@ void authputhandle(struct authhandle *auth) { if(--auth->refcount) return; - if(auth->text != NULL) - free(auth->text); if(auth->mechdata != NULL) auth->mech->release(auth); + if(auth->text != NULL) + free(auth->text); free(auth); }