git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure we don't free uninitialized variables.
[sfrench/samba-autobuild/.git]
/
lib
/
addns
/
dnsrecord.c
diff --git
a/lib/addns/dnsrecord.c
b/lib/addns/dnsrecord.c
index de70bca214e812b2bbd713d678c21e3a2bccd831..f9435da544306a72510da6f6110e574bb08c0122 100644
(file)
--- 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)
{
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))) {
DNS_ERROR err;
if (!(buf = dns_create_buffer(mem_ctx))) {