aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-11-02 16:43:28 +0100
committerRichard Levitte <levitte@openssl.org>2015-11-02 17:36:49 +0100
commit2443030466c3715a9c48770022df72dab7acbb51 (patch)
treebc16784b5ca5d68c5375c7eaef971be89ce9bd15
parentf564acdaf5edc4ef4ce296221fd3ec4fd3276d1a (diff)
downloadopenssl-2443030466c3715a9c48770022df72dab7acbb51.zip
openssl-2443030466c3715a9c48770022df72dab7acbb51.tar.gz
openssl-2443030466c3715a9c48770022df72dab7acbb51.tar.bz2
BIO_s_datagram() ctrl doesn't support SEEK/TELL, so don't pretend it does
Reviewed-by: Andy Polyakov <appro@openssl.org>
-rw-r--r--crypto/bio/bss_dgram.c2
-rw-r--r--include/openssl/bio.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c
index e7371c9..9c6af4b 100644
--- a/crypto/bio/bss_dgram.c
+++ b/crypto/bio/bss_dgram.c
@@ -512,10 +512,8 @@ static long dgram_ctrl(BIO *b, int cmd, long num, void *ptr)
switch (cmd) {
case BIO_CTRL_RESET:
num = 0;
- case BIO_C_FILE_SEEK:
ret = 0;
break;
- case BIO_C_FILE_TELL:
case BIO_CTRL_INFO:
ret = 0;
break;
diff --git a/include/openssl/bio.h b/include/openssl/bio.h
index 300811d..6f09931 100644
--- a/include/openssl/bio.h
+++ b/include/openssl/bio.h
@@ -496,7 +496,7 @@ struct bio_dgram_sctp_prinfo {
# define BIO_set_fp(b,fp,c) BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char *)fp)
# define BIO_get_fp(b,fpp) BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char *)fpp)
-/* BIO_s_datagram(), BIO_s_fd() and BIO_s_file() */
+/* BIO_s_fd() and BIO_s_file() */
# define BIO_seek(b,ofs) (int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL)
# define BIO_tell(b) (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL)