gss_canonicalize_name(): Added parens to remove
authorAlexandra Ellwood <lxs@mit.edu>
Tue, 25 Jul 2006 18:51:54 +0000 (18:51 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Tue, 25 Jul 2006 18:51:54 +0000 (18:51 +0000)
warning from if statement.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18395 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/mechglue/g_canon_name.c

index a726fefd00be359fccc9932576dc5f9a44af8830..20a0e85ca8bdb5a3d2d8c199780d6b420f94fa8f 100644 (file)
@@ -102,14 +102,14 @@ gss_name_t *output_name;
                dest_union = out_union;
 
        /* now let's create the new mech name */
-       if (major_status = generic_gss_copy_oid(minor_status, mech_type,
-                                               &dest_union->mech_type))
+       if ((major_status = generic_gss_copy_oid(minor_status, mech_type,
+                                               &dest_union->mech_type)))
                goto allocation_failure;
 
-       if (major_status =
+       if ((major_status =
                gssint_import_internal_name(minor_status, mech_type,
                                                dest_union,
-                                               &dest_union->mech_name))
+                                               &dest_union->mech_name)))
                goto allocation_failure;
 
        if (output_name)