Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
openldap2-client.29147
0224-ITS-9904-ldif_open_url-check-for-ber_strdu...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0224-ITS-9904-ldif_open_url-check-for-ber_strdup-failure.patch of Package openldap2-client.29147
From 15708e8395587bf8ba7a499aa6ced859fdb7bc98 Mon Sep 17 00:00:00 2001 From: Howard Chu <hyc@openldap.org> Date: Wed, 24 Aug 2022 14:40:51 +0100 Subject: [PATCH] ITS#9904 ldif_open_url: check for ber_strdup failure Code present since 1999, df8f7cbb9b79be3be9205d116d1dd0b263d6861a --- libraries/libldap/fetch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/libldap/fetch.c b/libraries/libldap/fetch.c index 1d68fda0c4..49662e9213 100644 --- a/libraries/libldap/fetch.c +++ b/libraries/libldap/fetch.c @@ -56,6 +56,8 @@ ldif_open_url( } p = ber_strdup( urlstr ); + if ( p == NULL ) + return NULL; /* But we should convert to LDAP_DIRSEP before use */ if ( LDAP_DIRSEP[0] != '/' ) { -- 2.40.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor