projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor fixes for Windows
[openssl.git]
/
crypto
/
bio
/
bss_log.c
diff --git
a/crypto/bio/bss_log.c
b/crypto/bio/bss_log.c
index b04f7bbfd38ef2787b5435bf1e176ecec0b0dc2e..4324f24126818d768f5896ec717577de019b85a2 100644
(file)
--- a/
crypto/bio/bss_log.c
+++ b/
crypto/bio/bss_log.c
@@
-39,6
+39,8
@@
void *_malloc32(__size_t);
# endif /* __INITIAL_POINTER_SIZE == 64 */
# endif /* __INITIAL_POINTER_SIZE && defined
* _ANSI_C_SOURCE */
# endif /* __INITIAL_POINTER_SIZE == 64 */
# endif /* __INITIAL_POINTER_SIZE && defined
* _ANSI_C_SOURCE */
+#elif defined(__DJGPP__) && defined(OPENSSL_NO_SOCK)
+# define NO_SYSLOG
#elif (!defined(MSDOS) || defined(WATT32)) && !defined(OPENSSL_SYS_VXWORKS) && !defined(NO_SYSLOG)
# include <syslog.h>
#endif
#elif (!defined(MSDOS) || defined(WATT32)) && !defined(OPENSSL_SYS_VXWORKS) && !defined(NO_SYSLOG)
# include <syslog.h>
#endif
@@
-195,9
+197,10
@@
static int slg_write(BIO *b, const char *in, int inl)
};
if ((buf = OPENSSL_malloc(inl + 1)) == NULL) {
};
if ((buf = OPENSSL_malloc(inl + 1)) == NULL) {
+ BIOerr(BIO_F_SLG_WRITE, ERR_R_MALLOC_FAILURE);
return 0;
}
return 0;
}
-
strn
cpy(buf, in, inl);
+
mem
cpy(buf, in, inl);
buf[inl] = '\0';
i = 0;
buf[inl] = '\0';
i = 0;