again a bitwise or is required
[strongswan.git] / src / libimcv / imc / imc_agent.c
index 94f1c1b..82778a5 100644 (file)
@@ -373,7 +373,7 @@ imc_agent_t *imc_agent_create(const char *name,
                        .destroy = _destroy,
                },
                .name = name,
-               .type = (vendor_id << 8) | (subtype && 0xff),
+               .type = (vendor_id << 8) | (subtype & 0xff),
                .id = id,
                .connections = linked_list_create(),
                .connection_lock = rwlock_create(RWLOCK_TYPE_DEFAULT),