fix error code
authorDr. Stephen Henson <steve@openssl.org>
Tue, 27 Dec 2011 14:40:21 +0000 (14:40 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 27 Dec 2011 14:40:21 +0000 (14:40 +0000)
crypto/bio/bio.h
crypto/bio/bio_err.c
crypto/bio/bss_dgram.c

index b4a1bd21b42b40112403b19fbf1863fb6773b174..60573c624fafd6605adffa06f63e6f829e6215c4 100644 (file)
@@ -796,6 +796,7 @@ void ERR_load_BIO_strings(void);
 #define BIO_F_BUFFER_CTRL                               114
 #define BIO_F_CONN_CTRL                                         127
 #define BIO_F_CONN_STATE                                115
+#define BIO_F_DGRAM_SCTP_READ                           132
 #define BIO_F_FILE_CTRL                                         116
 #define BIO_F_FILE_READ                                         130
 #define BIO_F_LINEBUFFER_CTRL                           129
index a224edd5a0a77a49d638e913fddc4b26b75dedbc..0dbfbd80d30c7d45d414858022f0d21482d04680 100644 (file)
@@ -1,6 +1,6 @@
 /* crypto/bio/bio_err.c */
 /* ====================================================================
- * Copyright (c) 1999-2006 The OpenSSL Project.  All rights reserved.
+ * Copyright (c) 1999-2011 The OpenSSL Project.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -95,6 +95,7 @@ static ERR_STRING_DATA BIO_str_functs[]=
 {ERR_FUNC(BIO_F_BUFFER_CTRL),  "BUFFER_CTRL"},
 {ERR_FUNC(BIO_F_CONN_CTRL),    "CONN_CTRL"},
 {ERR_FUNC(BIO_F_CONN_STATE),   "CONN_STATE"},
+{ERR_FUNC(BIO_F_DGRAM_SCTP_READ),      "DGRAM_SCTP_READ"},
 {ERR_FUNC(BIO_F_FILE_CTRL),    "FILE_CTRL"},
 {ERR_FUNC(BIO_F_FILE_READ),    "FILE_READ"},
 {ERR_FUNC(BIO_F_LINEBUFFER_CTRL),      "LINEBUFFER_CTRL"},
index c1972191676c9313eb3304d3cf502b9eaf0a624a..4d1a64ea358e3869c938f05d9a468180408c73b2 100644 (file)
@@ -1155,7 +1155,7 @@ static int dgram_sctp_read(BIO *b, char *out, int outl)
 
                        if (!auth_data || !auth_forward)
                                {
-                               BIOerr(BIO_F_BIO_READ,BIO_R_CONNECT_ERROR);
+                               BIOerr(BIO_F_DGRAM_SCTP_READ,BIO_R_CONNECT_ERROR);
                                return -1;
                                }