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
rwrap: Fix a possible NULL dereference.
[sfrench/samba-autobuild/.git]
/
lib
/
resolv_wrapper
/
resolv_wrapper.c
diff --git
a/lib/resolv_wrapper/resolv_wrapper.c
b/lib/resolv_wrapper/resolv_wrapper.c
index c70ca64e92b7737e3cd5b972cd719fdb1352d20c..10af3606b61be0bcab3cd9e314c2eb3a274ef9b9 100644
(file)
--- a/
lib/resolv_wrapper/resolv_wrapper.c
+++ b/
lib/resolv_wrapper/resolv_wrapper.c
@@
-733,7
+733,7
@@
static int rwrap_get_record(const char *hostfile, unsigned recursion,
}
}
- if (rc == ENOENT && recursion == 0) {
+ if (rc == ENOENT && recursion == 0
&& key != NULL
) {
RWRAP_LOG(RWRAP_LOG_TRACE, "Record for [%s] not found\n", query);
memcpy(rr->key, key, strlen(key) + 1);
}