gsasl-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS gsasl/lib/src


From: gsasl-commit
Subject: CVS gsasl/lib/src
Date: Sun, 28 Nov 2004 05:17:29 +0100

Update of /home/cvs/gsasl/lib/src
In directory dopio:/tmp/cvs-serv2676

Modified Files:
        xstep.c 
Log Message:
Simplify.


--- /home/cvs/gsasl/lib/src/xstep.c     2004/11/27 03:28:45     1.8
+++ /home/cvs/gsasl/lib/src/xstep.c     2004/11/28 04:17:29     1.9
@@ -100,24 +100,20 @@
     }
 
   res = gsasl_step (sctx, input, input_len, &output, &output_len);
+
+  if (input != NULL)
+    free (input);
+
   if (res == GSASL_OK || res == GSASL_NEEDS_MORE)
     {
       res = gsasl_base64_to (output, output_len, b64output, NULL);
-      if (res != GSASL_OK)
-       {
-         if (input != NULL)
-           free (input);
-         if (output != NULL)
-           free (output);
-         return res;
-       }
 
       if (output != NULL)
        free (output);
-    }
 
-  if (input != NULL)
-    free (input);
+      if (res != GSASL_OK)
+       return res;
+    }
 
   return res;
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]