again a bitwise or is required
[strongswan.git] / src / libimcv / imv / imv_agent.c
index bf99568..290bb11 100644 (file)
@@ -513,7 +513,7 @@ imv_agent_t *imv_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),