shishi-commit
[Top][All Lists]
Advanced

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

CVS shishi/lib


From: shishi-commit
Subject: CVS shishi/lib
Date: Tue, 7 Feb 2006 13:50:18 +0100

Update of /home/cvs/shishi/lib
In directory dopio:/tmp/cvs-serv26746

Modified Files:
        encapreppart.c 
Log Message:
Fix gettimeofday() usage.


--- /home/cvs/shishi/lib/encapreppart.c 2005/05/26 15:12:34     1.41
+++ /home/cvs/shishi/lib/encapreppart.c 2006/02/07 12:50:17     1.42
@@ -1,5 +1,5 @@
 /* encapreppart.c --- Encrypted authentication reply part functions.
- * Copyright (C) 2002, 2003, 2004  Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004, 2006  Simon Josefsson
  *
  * This file is part of Shishi.
  *
@@ -40,9 +40,12 @@
   int res;
   Shishi_asn1 node = NULL;
   struct timeval tv;
-  struct timezone tz;
   uint32_t seqnr;
 
+  res = gettimeofday (&tv, NULL);
+  if (res)
+    return NULL;
+
   node = shishi_asn1_encapreppart (handle);
   if (!node)
     return NULL;
@@ -52,7 +55,6 @@
   if (res != SHISHI_OK)
     goto error;
 
-  gettimeofday (&tv, &tz);
   res = shishi_encapreppart_cusec_set (handle, node, tv.tv_usec % 1000000);
   if (res != SHISHI_OK)
     goto error;





reply via email to

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