Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions openarc/openarc-ar.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,23 @@ ares_parse(u_char *hdr, struct authres *ar)
prevstate = state;
state = 2;
}
else if (tokens[c][0] == '=' && tokens[c][1] == '\0')
{
/*
* ADMD-less header (e.g. Office 365 internal
* headers that escape outbound): the token we
* read as authserv-id is actually the first
* method name. Leave ares_host empty and
* continue parsing from the result value.
*/
n = 1;
ar->ares_result[0].result_method =
ares_convert(methods,
(char *) ar->ares_host);
memset(ar->ares_host, '\0', sizeof ar->ares_host);
prevstate = state;
state = 5;
}
else
{
return -1;
Expand Down