svn commit: samba r1892 - branches/SAMBA_4_0/source/lib

tridge at samba.org tridge at samba.org
Wed Aug 18 20:33:14 GMT 2004


Simo,

 > Shouldn't we check the pointer was really allocated by talloc ?
 > something like:
 > 
 > if (tc->magic == TALLOC_MAGIC) {
 > 	return tc->context;
 > } else {
 > 	return NULL;
 > }

yep, that would be a reasonable check to add.

Cheers, Tridge


More information about the samba-technical mailing list