From 31a8460417d433fe2d1ef9f6d042ba3bc46f7341 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 16 Mar 2011 18:23:26 +0000 Subject: [PATCH] ITS#6863, fix crashes in ITS#6714 patch. From Jan Vcelak @ Red Hat --- libraries/libldap/tls_m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libldap/tls_m.c b/libraries/libldap/tls_m.c index 6d1c0a4ca1..911885ddcd 100644 --- a/libraries/libldap/tls_m.c +++ b/libraries/libldap/tls_m.c @@ -2272,7 +2272,7 @@ tlsm_is_non_ssl_message( PRFileDesc *fd, ber_tag_t *thebyte ) } if ( p->firsttag == LBER_SEQUENCE ) { - if ( *thebyte ) { + if ( thebyte ) { *thebyte = p->firsttag; } return 1; @@ -2769,7 +2769,7 @@ tlsm_PR_GetSocketOption(PRFileDesc *fd, PRSocketOptionData *data) struct tls_data *p; p = tlsm_get_pvt_tls_data( fd ); - if ( !data ) { + if ( p == NULL || data == NULL ) { return PR_FAILURE; } -- 2.39.5