s4/torture/libnetapi/libnetapi_user.c: fix typo
authorAurelien Aptel <aaptel@suse.com>
Fri, 4 Mar 2016 08:29:48 +0000 (09:29 +0100)
committerAlexander Bokovoy <ab@samba.org>
Fri, 4 Mar 2016 17:08:21 +0000 (18:08 +0100)
fixed misplaced parenthesis and wrong sizeof().

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: David Disseldorf <ddis@suse.de>
source4/torture/libnetapi/libnetapi_user.c

index 2afc1e59169f4bd6c916bbc73b51ea9d57e5b0a7..e925725e5f00523d33dd86c0a130cc3c3828e6af 100644 (file)
@@ -249,7 +249,7 @@ static NET_API_STATUS test_netusermodals(struct torture_context *tctx,
                return status;
        }
 
-       if (memcmp(u0, _u0, sizeof(u0) != 0)) {
+       if (memcmp(u0, _u0, sizeof(*u0)) != 0) {
                torture_comment(tctx, "USER_MODALS_INFO_0 struct has changed!!!!\n");
                return -1;
        }