summaryrefslogtreecommitdiff
path: root/lib/gnutls_handshake.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-03-19 13:19:25 +0100
committerSimon Josefsson <simon@josefsson.org>2008-03-19 13:19:25 +0100
commitd688a6a0ff6a0a3130e15f130f31553d21a03d24 (patch)
tree2bf814e62f911f88012cf106d79d312fba4d1c61 /lib/gnutls_handshake.c
parent1dcda50cceef89f3842bc52c9459cd998ca26611 (diff)
downloadgnutls-d688a6a0ff6a0a3130e15f130f31553d21a03d24.tar.gz
Fix gcc warnings.
Diffstat (limited to 'lib/gnutls_handshake.c')
-rw-r--r--lib/gnutls_handshake.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c
index 71e6484afc..c8b0e3e298 100644
--- a/lib/gnutls_handshake.c
+++ b/lib/gnutls_handshake.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation
+ * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
*
* Author: Nikos Mavrogiannopoulos
*
@@ -358,10 +358,10 @@ _gnutls_read_client_hello (gnutls_session_t session, opaque * data,
pos += 2;
neg_version = _gnutls_negotiate_version( session, adv_version);
- if (neg_version < 0)
+ if (neg_version < 0)
{
gnutls_assert();
- return ret;
+ return neg_version;
}
/* Read client random value.