diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-02-14 10:27:23 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-02-17 17:45:58 +0100 |
commit | 828cc04cd1ed9076faa6e1545055ae69a04f0f0f (patch) | |
tree | a16ddc4af982c2abf500033d8e162093f8f70ef7 /src/tests | |
parent | 3b35ff47651e4893ce537a273466766b962362da (diff) | |
download | sssd-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.c | 2 |
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; } |