FreeRDP/FreeRDP — comment on commit 927bc717809030a793a0626b37f7c82a8a937150
File: libfreerdp-core/info.c line 544
By adambprotiviti:

Ah, I see the issue. We should only add two I think if settings->password->cookie->length > 0. Oops. The reason we did that is we subtracted two earlier because the servers sends us the redirect cookie length including the double null at the end, but when we send it back it doesn't want the length to include the double null.