1 --- a/source4/lib/messaging/messaging.c
2 +++ b/source4/lib/messaging/messaging.c
3 @@ -525,7 +525,7 @@ static struct imessaging_context *imessa
7 - msg->sock_dir = lpcfg_private_path(msg, lp_ctx, "msg.sock");
8 + msg->sock_dir = lpcfg_lock_path(msg, lp_ctx, "msg.sock");
9 if (msg->sock_dir == NULL) {