diff options
author | Jeremy Allison <jra@samba.org> | 2011-11-22 15:53:26 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-11-23 02:27:52 +0100 |
commit | a17e01baa79bd9205232f81534a700ac4aa951c3 (patch) | |
tree | c9cc1dddebbd16b09c5962fafa8125864a5804c6 | |
parent | 7ef4d08a98870a84ac6e60c194a0fcd47ebe00e8 (diff) | |
download | samba-a17e01baa79bd9205232f81534a700ac4aa951c3.tar.gz samba-a17e01baa79bd9205232f81534a700ac4aa951c3.tar.xz samba-a17e01baa79bd9205232f81534a700ac4aa951c3.zip |
Ensure we don't free uninitialized variables.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Nov 23 02:27:53 CET 2011 on sn-devel-104
-rw-r--r-- | lib/addns/dnsrecord.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/addns/dnsrecord.c b/lib/addns/dnsrecord.c index de70bca214..f9435da544 100644 --- a/lib/addns/dnsrecord.c +++ b/lib/addns/dnsrecord.c @@ -309,8 +309,8 @@ DNS_ERROR dns_create_tsig_record(TALLOC_CTX *mem_ctx, const char *keyname, uint16 original_id, uint16 error, struct dns_rrec **prec) { - struct dns_buffer *buf; - struct dns_domain_name *algorithm; + struct dns_buffer *buf = NULL; + struct dns_domain_name *algorithm = NULL; DNS_ERROR err; if (!(buf = dns_create_buffer(mem_ctx))) { |