summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 9dca9c803..c751179b5 100644
--- a/monitor.c
+++ b/monitor.c
@@ -659,14 +659,20 @@ mm_answer_authserv(int sock, Buffer *m)
659 659
660 authctxt->service = buffer_get_string(m, NULL); 660 authctxt->service = buffer_get_string(m, NULL);
661 authctxt->style = buffer_get_string(m, NULL); 661 authctxt->style = buffer_get_string(m, NULL);
662 debug3("%s: service=%s, style=%s", 662 authctxt->role = buffer_get_string(m, NULL);
663 __func__, authctxt->service, authctxt->style); 663 debug3("%s: service=%s, style=%s, role=%s",
664 __func__, authctxt->service, authctxt->style, authctxt->role);
664 665
665 if (strlen(authctxt->style) == 0) { 666 if (strlen(authctxt->style) == 0) {
666 xfree(authctxt->style); 667 xfree(authctxt->style);
667 authctxt->style = NULL; 668 authctxt->style = NULL;
668 } 669 }
669 670
671 if (strlen(authctxt->role) == 0) {
672 xfree(authctxt->role);
673 authctxt->role = NULL;
674 }
675
670 return (0); 676 return (0);
671} 677}
672 678