[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: |
Fri, 24 Sep 2004 01:33:40 +0200 |
Update of /home/cvs/gsasl/src
In directory dopio:/tmp/cvs-serv7357
Modified Files:
gsasl.c
Log Message:
Remove debugging print of b64 encoded session data.
--- /home/cvs/gsasl/src/gsasl.c 2004/09/23 00:22:37 1.63
+++ /home/cvs/gsasl/src/gsasl.c 2004/09/23 23:33:40 1.64
@@ -488,8 +488,13 @@
if (res != GSASL_OK)
break;
- if (!(strlen (input) == output_len &&
- memcmp (input, out, output_len) == 0))
+ if (sockfd)
+ {
+ if (write (sockfd, out, output_len) != output_len)
+ return 0;
+ }
+ else if (!(strlen (input) == output_len &&
+ memcmp (input, out, output_len) == 0))
{
b64output_len = sizeof (b64output);
b64output_len = gsasl_base64_encode (out, output_len,
@@ -507,12 +512,6 @@
fprintf (stdout, "%s\n", b64output);
}
- if (sockfd)
- {
- if (write (sockfd, out, output_len) != output_len)
- return 0;
- }
-
free (out);
}