[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/src
From: |
gsasl-commit |
Subject: |
CVS gsasl/src |
Date: |
Thu, 23 Sep 2004 02:22:37 +0200 |
Update of /home/cvs/gsasl/src
In directory dopio:/tmp/cvs-serv16682
Modified Files:
gsasl.c
Log Message:
Fix gsasl_encode use.
--- /home/cvs/gsasl/src/gsasl.c 2004/09/05 20:37:47 1.62
+++ /home/cvs/gsasl/src/gsasl.c 2004/09/23 00:22:37 1.63
@@ -484,15 +484,15 @@
output_len = sizeof (output);
res = gsasl_encode (xctx, input, strlen (input),
- output, &output_len);
+ &out, &output_len);
if (res != GSASL_OK)
break;
if (!(strlen (input) == output_len &&
- memcmp (input, output, output_len) == 0))
+ memcmp (input, out, output_len) == 0))
{
b64output_len = sizeof (b64output);
- b64output_len = gsasl_base64_encode (output, output_len,
+ b64output_len = gsasl_base64_encode (out, output_len,
b64output,
b64output_len);
if (b64output_len == -1)
@@ -509,9 +509,11 @@
if (sockfd)
{
- if (write (sockfd, output, output_len) != output_len)
+ if (write (sockfd, out, output_len) != output_len)
return 0;
}
+
+ free (out);
}
if (sockfd && FD_ISSET (sockfd, &readfds))