Core dump of net -- fix to ldap.c

Gerald (Jerry) Carter jerry at plainjoe.org
Mon Jan 20 18:04:36 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Got it.



cheers, jerry

On Sat, 18 Jan 2003, Ken Cross wrote:

> # cvs diff -pu ldap.c
> Index: ldap.c
> ===================================================================
> RCS file: /cvsroot/samba/source/libads/ldap.c,v
> retrieving revision 1.55.2.13
> diff -p -u -r1.55.2.13 ldap.c
> --- ldap.c      3 Jan 2003 08:28:02 -0000       1.55.2.13
> +++ ldap.c      18 Jan 2003 14:44:33 -0000
> @@ -1430,6 +1430,11 @@ ADS_STATUS ads_set_machine_sd(ADS_STRUCT
>         if (!ADS_ERR_OK(ret)) return ret;
>  
>         msg   = ads_first_entry(ads, res);
> +        if (!msg) {   /* KJC */
> +                ret = ADS_ERROR(LDAP_NO_RESULTS_RETURNED);
> +               goto ads_set_sd_error;
> +       }
> +
>         ads_pull_sid(ads, msg, attrs[1], &sid); 
>         if (!(ctx = talloc_init("sec_io_desc"))) {
>                 ret =  ADS_ERROR(LDAP_NO_MEMORY);
> 
> 
> Ken
> 


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+LDoMIR7qMdg1EfYRAu6cAJoDfC5DN+dImCB1LVc5RsGVtqgXiACfRv5U
enyINr76pmIRP+/qKspwenM=
=eOSS
-----END PGP SIGNATURE-----




More information about the samba-technical mailing list