summaryrefslogtreecommitdiffstats
path: root/src/ntlm.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-04-13 01:45:42 -0400
committerSimo Sorce <simo@redhat.com>2014-05-04 17:21:06 -0400
commit0af4f35f01fef417b42fbad0a9ad774043d898be (patch)
tree56e1b29d187ef00f68a68e7aaca4d124f8df7bbe /src/ntlm.c
parent21307dc11da9a5cf75167e125aae5c8afa9d6e9d (diff)
downloadgss-ntlmssp-0af4f35f01fef417b42fbad0a9ad774043d898be.tar.gz
gss-ntlmssp-0af4f35f01fef417b42fbad0a9ad774043d898be.tar.xz
gss-ntlmssp-0af4f35f01fef417b42fbad0a9ad774043d898be.zip
Make MIC conditional on integrity being requested
If integrity is requested by any party then the MIC, if requested by the server will be generated, otherwise it will not be.
Diffstat (limited to 'src/ntlm.c')
-rw-r--r--src/ntlm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ntlm.c b/src/ntlm.c
index d10917f..73934d7 100644
--- a/src/ntlm.c
+++ b/src/ntlm.c
@@ -832,7 +832,7 @@ int ntlm_process_target_info(struct ntlm_ctx *ctx,
/* the server did not send the timestamp, use current time */
if (srv_time == 0) {
srv_time = ntlm_timestamp_now();
- } else {
+ } else if (add_mic) {
av_flags |= MSVAVFLAGS_MIC_PRESENT;
*add_mic = true;
}