Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
164c554
)
Release the authmech before starting to free data in an authhandle.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 5 Jun 2008 13:32:29 +0000
(15:32 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 5 Jun 2008 13:32:29 +0000
(15:32 +0200)
daemon/auth.c
patch
|
blob
|
blame
|
history
diff --git
a/daemon/auth.c
b/daemon/auth.c
index
470c985
..
d8c7a35
100644
(file)
--- 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);
}