gsasl-commit
[Top][All Lists]
Advanced

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

CVS gsasl/lib/gssapi


From: gsasl-commit
Subject: CVS gsasl/lib/gssapi
Date: Fri, 7 Oct 2005 16:35:19 +0200

Update of /home/cvs/gsasl/lib/gssapi
In directory dopio:/tmp/cvs-serv10354

Modified Files:
        client.c 
Log Message:
Fix cast errors.


--- /home/cvs/gsasl/lib/gssapi/client.c 2005/06/25 09:56:55     1.13
+++ /home/cvs/gsasl/lib/gssapi/client.c 2005/10/07 14:35:19     1.14
@@ -1,5 +1,5 @@
 /* client.c --- SASL mechanism GSSAPI as defined in RFC 2222, client side.
- * Copyright (C) 2002, 2003, 2004  Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004, 2005  Simon Josefsson
  *
  * This file is part of GNU SASL Library.
  *
@@ -221,9 +221,12 @@
       if (!bufdesc.value)
        return GSASL_MALLOC_ERROR;
 
-      ((char *) bufdesc.value)[0] = state->qop;
-      memcpy (bufdesc.value + 1, clientwrap + 1, 3);
-      memcpy (bufdesc.value + 4, p, strlen (p));
+      {
+       char *q = bufdesc.value;
+       q[0] = state->qop;
+       memcpy (q + 1, clientwrap + 1, 3);
+       memcpy (q + 4, p, strlen (p));
+      }
 
       maj_stat = gss_wrap (&min_stat, state->context, 0, GSS_C_QOP_DEFAULT,
                           &bufdesc, &conf_state, &bufdesc2);





reply via email to

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