diff options
author | Sam Lang <sam.lang@inktank.com> | 2013-04-22 10:23:16 -0500 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-24 23:58:43 +0200 |
commit | 727c611fe3c903d905871a46909ed1e7639add15 (patch) | |
tree | 5171ac1f23df5e6cf11764990248281ba46c472c /lib/util/util_str_common.c | |
parent | 301a1f919202c90c629a4926ebdf054b9f2fe1e8 (diff) | |
download | samba-727c611fe3c903d905871a46909ed1e7639add15.tar.gz samba-727c611fe3c903d905871a46909ed1e7639add15.tar.bz2 samba-727c611fe3c903d905871a46909ed1e7639add15.zip |
source4/libcli: Only set ctemp set on success
If open fails ctemp.out.name probably won't be valid and strdup
will cause a segv. Only set the path if open succeeds.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Apr 24 23:58:44 CEST 2013 on sn-devel-104
Diffstat (limited to 'lib/util/util_str_common.c')
0 files changed, 0 insertions, 0 deletions