gsasl-commit
[Top][All Lists]
Advanced

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

CVS gsasl/lib/securid


From: gsasl-commit
Subject: CVS gsasl/lib/securid
Date: Sun, 28 Nov 2004 07:20:42 +0100

Update of /home/cvs/gsasl/lib/securid
In directory dopio:/tmp/cvs-serv2118

Modified Files:
        client.c 
Log Message:
Simplify.


--- /home/cvs/gsasl/lib/securid/client.c        2004/10/13 16:23:32     1.7
+++ /home/cvs/gsasl/lib/securid/client.c        2004/11/28 06:20:40     1.8
@@ -107,19 +107,9 @@
       if (do_pin)
        {
          if (input_len > strlen (PIN))
-           {
-             char *zsuggestedpin;
-
-             zsuggestedpin = malloc (input_len - strlen (PIN) + 1);
-             if (zsuggestedpin == NULL)
-               return GSASL_MALLOC_ERROR;
-             memcpy (zsuggestedpin, &input[strlen (PIN)],
-                     input_len - strlen (PIN));
-             zsuggestedpin[input_len - strlen (PIN)] = '\0';
-
-             gsasl_property_set (sctx, GSASL_SUGGESTED_PIN, zsuggestedpin);
-             free (zsuggestedpin);
-           }
+           gsasl_property_set_raw (sctx, GSASL_SUGGESTED_PIN,
+                                   input[strlen (PIN)],
+                                   input_len - strlen (PIN));
 
          pin = gsasl_property_get (sctx, GSASL_PIN);
          if (!pin)





reply via email to

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