summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index 1489e7f08..d8814682a 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -254,10 +254,10 @@ mm_auth2_read_banner(void)
254 return (banner); 254 return (banner);
255} 255}
256 256
257/* Inform the privileged process about service and style */ 257/* Inform the privileged process about service, style, and role */
258 258
259void 259void
260mm_inform_authserv(char *service, char *style) 260mm_inform_authserv(char *service, char *style, char *role)
261{ 261{
262 Buffer m; 262 Buffer m;
263 263
@@ -266,6 +266,7 @@ mm_inform_authserv(char *service, char *style)
266 buffer_init(&m); 266 buffer_init(&m);
267 buffer_put_cstring(&m, service); 267 buffer_put_cstring(&m, service);
268 buffer_put_cstring(&m, style ? style : ""); 268 buffer_put_cstring(&m, style ? style : "");
269 buffer_put_cstring(&m, role ? role : "");
269 270
270 mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_AUTHSERV, &m); 271 mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_AUTHSERV, &m);
271 272