Handle protobuf unpacking errors. Unhandled errors caused segfault when old client...
[umurmur.git] / src / ssl.c
index 09510c033cabdb35ce118ce1ac078f71de5e0c53..456fe828f805f7f0853f12fd82e21d83da8bd216 100644 (file)
--- a/src/ssl.c
+++ b/src/ssl.c
@@ -1,5 +1,5 @@
-/* Copyright (C) 2009, Martin Johansson <martin@fatbob.nu>
-   Copyright (C) 2005-2009, Thorvald Natvig <thorvald@natvig.com>
+/* Copyright (C) 2009-2010, Martin Johansson <martin@fatbob.nu>
+   Copyright (C) 2005-2010, Thorvald Natvig <thorvald@natvig.com>
 
    All rights reserved.
 
@@ -264,7 +264,7 @@ void SSL_getdigest(char *s, int l)
 
 void SSL_init(void)
 {
-       SSL_METHOD *method;
+       const SSL_METHOD *method;
        SSL *ssl;
        int i, offset = 0;
        STACK_OF(SSL_CIPHER) *cipherlist = NULL, *cipherlist_new = NULL;