[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS shishi/tests
From: |
shishi-commit |
Subject: |
CVS shishi/tests |
Date: |
Fri, 10 Sep 2004 11:42:49 +0200 |
Update of /home/cvs/shishi/tests
In directory dopio:/tmp/cvs-serv20118
Modified Files:
authenticator.c
Log Message:
Fix crash.
--- /home/cvs/shishi/tests/authenticator.c 2004/09/10 09:29:22 1.17
+++ /home/cvs/shishi/tests/authenticator.c 2004/09/10 09:42:49 1.18
@@ -182,15 +182,17 @@
success ("shishi_authenticator_authorizationdata() OK\n");
else
fail ("shishi_authenticator_authorizationdata() failed\n");
- free (buf);
+ if (res == SHISHI_OK)
+ free (buf);
/* shishi_authenticator_authorizationdata */
res = shishi_authenticator_authorizationdata (handle, a, &t, &buf, &m, 2);
+ if (res == SHISHI_OK)
+ free (buf);
if (res == SHISHI_OUT_OF_RANGE)
success ("shishi_authenticator_authorizationdata() OK\n");
else
fail ("shishi_authenticator_authorizationdata() failed\n");
- free (buf);
/* shishi_authenticator_remove_cksum */
res = shishi_authenticator_remove_cksum (handle, a);