diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/bio/bss_file.c | 2 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/bss_file.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/bss_file.c b/src/lib/libcrypto/bio/bss_file.c index 8034ac93f9..58fade9f29 100644 --- a/src/lib/libcrypto/bio/bss_file.c +++ b/src/lib/libcrypto/bio/bss_file.c | |||
| @@ -199,7 +199,7 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 199 | { | 199 | { |
| 200 | case BIO_C_FILE_SEEK: | 200 | case BIO_C_FILE_SEEK: |
| 201 | case BIO_CTRL_RESET: | 201 | case BIO_CTRL_RESET: |
| 202 | ret=(long)fseek(fp,num,0); | 202 | ret=(long)fseek(fp,num,SEEK_SET); |
| 203 | break; | 203 | break; |
| 204 | case BIO_CTRL_EOF: | 204 | case BIO_CTRL_EOF: |
| 205 | ret=(long)feof(fp); | 205 | ret=(long)feof(fp); |
diff --git a/src/lib/libssl/src/crypto/bio/bss_file.c b/src/lib/libssl/src/crypto/bio/bss_file.c index 8034ac93f9..58fade9f29 100644 --- a/src/lib/libssl/src/crypto/bio/bss_file.c +++ b/src/lib/libssl/src/crypto/bio/bss_file.c | |||
| @@ -199,7 +199,7 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 199 | { | 199 | { |
| 200 | case BIO_C_FILE_SEEK: | 200 | case BIO_C_FILE_SEEK: |
| 201 | case BIO_CTRL_RESET: | 201 | case BIO_CTRL_RESET: |
| 202 | ret=(long)fseek(fp,num,0); | 202 | ret=(long)fseek(fp,num,SEEK_SET); |
| 203 | break; | 203 | break; |
| 204 | case BIO_CTRL_EOF: | 204 | case BIO_CTRL_EOF: |
| 205 | ret=(long)feof(fp); | 205 | ret=(long)feof(fp); |
