[SCM] GNU gnutls branch, master, updated. gnutls_3_0_13-42-g93354fe

"Nikos Mavrogiannopoulos" <[email protected]>
Newsgroups gmane.comp.encryption.gpg.gnutls.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=93354fe965b79203c412c85c312c2fcf096264a7

The branch, master has been updated
       via  93354fe965b79203c412c85c312c2fcf096264a7 (commit)
      from  57717f65ce5141761b3ea39a9972b318e7fd2700 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 93354fe965b79203c412c85c312c2fcf096264a7
Author: Nikos Mavrogiannopoulos <[email protected]>
Date:   Sat Feb 25 12:55:35 2012 +0100

    make sure that the microseconds field does not overflow

-----------------------------------------------------------------------

Summary of changes:
 lib/system.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lib/system.c b/lib/system.c
index 1573bb3..679bb0a 100644
--- a/lib/system.c
+++ b/lib/system.c
@@ -130,6 +130,12 @@ int fd = GNUTLS_POINTER_TO_INT(ptr);
   tv.tv_sec = 0;
   tv.tv_usec = ms * 1000;
   
+  while(tv.tv_usec >= 1000000)
+    {
+      tv.tv_usec -= 1000000;
+      tv.tv_sec++;
+    }
+  
   ret = select(fd+1, &rfds, NULL, NULL, &tv);
   if (ret <= 0)
     return ret;


hooks/post-receive
-- 
GNU gnutls
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.