* FIX [broker.c] client only wants will msg expiry interval
@@ -578,7 +578,7 @@ server_cb(void *arg)
handle_pub(work, work->pipe_ct,
PROTOCOL_VERSION_v5);
work->pub_packet->var_header.publish
- .properties = property_copy(will_property);
+ .properties = will_property_copy(will_property);
work->pub_packet->var_header.publish.prop_len = get_properties_len(will_property);
} else {
nng_msg_set_cmd_type(msg, CMD_PUBLISH);
