1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

tdb: return unpack error on strdup failure

Signed-off-by: Lars Müller <lars@samba.org>

Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Fri Aug 31 21:05:21 CEST 2012 on sn-devel-104
This commit is contained in:
David Disseldorp 2012-08-31 17:41:31 +02:00
parent 85706c4e16
commit e4505fc27b

View File

@ -237,6 +237,9 @@ int tdb_unpack(const uint8 *buf, int bufsize, const char *fmt, ...)
if (bufsize < len)
goto no_space;
*ps = SMB_STRDUP((const char *)buf);
if (*ps == NULL) {
goto no_space;
}
break;
case 'f': /* null-terminated string */
s = va_arg(ap,char *);