mirror of
https://github.com/samba-team/samba.git
synced 2025-02-08 05:57:51 +03:00
Janitor for tpot yet again... Merging in memory leak fix.
Jeremy.
This commit is contained in:
parent
af2fa43850
commit
6ce50ffcda
@ -2830,6 +2830,7 @@ static int unpack_values(NT_PRINTER_DATA *printer_data, char *buf, int buflen)
|
||||
|
||||
regval_ctr_addvalue( &printer_data->keys[key_index].values, valuename, type, data_p, size );
|
||||
|
||||
SAFE_FREE(data_p); /* 'B' option to tdb_unpack does a malloc() */
|
||||
DEBUG(8,("specific: [%s:%s], len: %d\n", keyname, valuename, size));
|
||||
}
|
||||
|
||||
@ -4382,9 +4383,8 @@ BOOL nt_printing_getsec(TALLOC_CTX *ctx, const char *printername, SEC_DESC_BUF *
|
||||
fstring key;
|
||||
char *temp;
|
||||
|
||||
if ((temp = strchr(printername + 2, '\\'))) {
|
||||
if (strlen(printername) > 2 && (temp = strchr(printername + 2, '\\')))
|
||||
printername = temp + 1;
|
||||
}
|
||||
|
||||
/* Fetch security descriptor from tdb */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user