diff options
-rw-r--r-- | libports/reallocate-from-external.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libports/reallocate-from-external.c b/libports/reallocate-from-external.c index 74e6d76c..7e6ea1df 100644 --- a/libports/reallocate-from-external.c +++ b/libports/reallocate-from-external.c @@ -49,7 +49,7 @@ ports_reallocate_from_external (void *portstruct, mach_port_t receive) dropref = 1; pi->flags &= ~PORT_HAS_SENDRIGHTS; } - else if ((pi->flags & PORT_HAS_SENDRIGHTS == 0) && stat.mps_srights) + else if (((pi->flags & PORT_HAS_SENDRIGHTS) == 0) && stat.mps_srights) { pi->flags |= PORT_HAS_SENDRIGHTS; pi->refcnt++; |