summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-02-14 10:27:23 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-02-17 17:45:58 +0100
commit828cc04cd1ed9076faa6e1545055ae69a04f0f0f (patch)
treea16ddc4af982c2abf500033d8e162093f8f70ef7 /src/tests
parent3b35ff47651e4893ce537a273466766b962362da (diff)
downloadsssd-828cc04cd1ed9076faa6e1545055ae69a04f0f0f.tar.gz
sssd-828cc04cd1ed9076faa6e1545055ae69a04f0f0f.tar.xz
sssd-828cc04cd1ed9076faa6e1545055ae69a04f0f0f.zip
test_dyndns: Test right variable after allocation.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/cmocka/test_dyndns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/cmocka/test_dyndns.c b/src/tests/cmocka/test_dyndns.c
index 9d0e196c8..316ba5dee 100644
--- a/src/tests/cmocka/test_dyndns.c
+++ b/src/tests/cmocka/test_dyndns.c
@@ -118,7 +118,7 @@ int __wrap_getifaddrs(struct ifaddrs **_ifap)
ifap_prev = ifap;
ifap->ifa_name = talloc_strdup(ifap, name);
- if (ifap == NULL) {
+ if (ifap->ifa_name == NULL) {
errno = ENOMEM;
goto fail;
}