Complete the fix for bug 6100
authorVolker Lendecke <vl@samba.org>
Thu, 5 Mar 2009 21:20:55 +0000 (22:20 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 6 Mar 2009 07:28:30 +0000 (08:28 +0100)
commit6e96bae05598fc7601e9a50de75cf57271d984bb
treee26cfe8de98f0e0ed05e233cd90fa00eadfb7186
parentaf56d80f4475f1025b318facf6f26445243e4dc7
Complete the fix for bug 6100

According to [MS-RPCE].pdf, section 2.2.2.11:

----
A client or a server that (during composing of a PDU) has allocated more space
for the authentication token than the security provider fills in SHOULD fill in
the rest of the allocated space with zero octets. These zero octets are still
considered to belong to the authentication token part of the PDU.<36>
----

RPC implementations are allowed to send padding bytes at the end of an auth
footer. Windows 7 makes use of this.

Thanks to Nick Meier <nmeier@microsoft.com>

Volker
(cherry picked from commit 224364d6c9eaa4d07b57cdef04ac17acb416e413)
source/rpc_server/srv_pipe.c