diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-12-20 12:51:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:29:29 -0500 |
commit | bfa5a5a4412ce810da91c2b3d8e6f1b86f24eb5a (patch) | |
tree | f280fb65bcab025f2603c896642c607ad9e3376e /source4 | |
parent | f09c0c1237762e96e2e2438973aa6c956d518ef0 (diff) | |
download | samba-bfa5a5a4412ce810da91c2b3d8e6f1b86f24eb5a.tar.gz samba-bfa5a5a4412ce810da91c2b3d8e6f1b86f24eb5a.tar.bz2 samba-bfa5a5a4412ce810da91c2b3d8e6f1b86f24eb5a.zip |
r20276: remove unneeded talloc_strdup()
metze
(This used to be commit c4733b20c7c113dc1abfb2219a899b80bbcc2875)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/util/asn1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/libcli/util/asn1.c b/source4/libcli/util/asn1.c index 83044f8e30..3c669292cb 100644 --- a/source4/libcli/util/asn1.c +++ b/source4/libcli/util/asn1.c @@ -510,11 +510,11 @@ BOOL asn1_read_OID_String(struct asn1_data *data, const char **OID) } if (!data->has_error) { - *OID = talloc_strdup(NULL, tmp_oid); - if (!*OID) goto nomem; + *OID = tmp_oid; + } else { + talloc_free(tmp_oid); } - talloc_free(tmp_oid); return !data->has_error; nomem: talloc_free(tmp_oid); |