[PATCH] fix munged dial crash

Stefan Metzmacher metze at metzemix.de
Tue Nov 11 22:19:47 GMT 2003


Andrew Bartlett wrote:

> On Wed, 2003-11-12 at 06:19, Gerald (Jerry) Carter wrote:
> 
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>Stefan Metzmacher wrote:
>>| Hi,
>>|
>>| here's a small patch that prevents smbd from panic when the munged dial
>>| field is empty like in pdb_ldap now.
>>
>>Thanks.  Got it.
> 
> 
> I'm worried about some of the strlen(NULL) things we are still doing
> (inside the base64 conversion routines), so this patch avoids the issue
> a bit more.
the munged_dial is PDB_NOT_QUIET_NULL so strlen("")

but this patch is more readable, so apply it if it runs for you

-- 

metze

-------------------------------------------
Stefan (metze) Metzmacher <metze at metzemix.de>




More information about the samba-technical mailing list