diff options
author | 2014-06-18 04:47:32 +0000 | |
---|---|---|
committer | 2014-06-18 04:47:32 +0000 | |
commit | 5bba1004933ff301df46c335ca6055f2918e6f7d (patch) | |
tree | f0de5272b598b3525549eca9e85035155c230ff3 /lib/libssl/ssl_ciph.c | |
parent | Now that we have a dedicated getentropy(2) system call for (diff) | |
download | wireguard-openbsd-5bba1004933ff301df46c335ca6055f2918e6f7d.tar.xz wireguard-openbsd-5bba1004933ff301df46c335ca6055f2918e6f7d.zip |
In SSL_COMP_add_compression_method(), make sure error cases actually return
`error' rather than `success'.
ok deraadt@
Diffstat (limited to 'lib/libssl/ssl_ciph.c')
-rw-r--r-- | lib/libssl/ssl_ciph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/ssl_ciph.c b/lib/libssl/ssl_ciph.c index a89c8253c8f..d491a0cab6d 100644 --- a/lib/libssl/ssl_ciph.c +++ b/lib/libssl/ssl_ciph.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_ciph.c,v 1.53 2014/06/13 13:28:53 jsing Exp $ */ +/* $OpenBSD: ssl_ciph.c,v 1.54 2014/06/18 04:47:32 miod Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -2029,7 +2029,7 @@ SSL_COMP_add_compression_method(int id, COMP_METHOD *cm) if (id < 193 || id > 255) { SSLerr(SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD, SSL_R_COMPRESSION_ID_NOT_WITHIN_PRIVATE_RANGE); - return 0; + return 1; } comp = malloc(sizeof(SSL_COMP)); |