In authgss_prot.c:xdr_rpc_gss_wrap_data(), gss_wrap() is called in the svc == RPCSEC_GSS_SVC_PRIVACY conditional block with databuf.length uninitialized.
Initialization performed in the svc == RPCSEC_GSS_SVC_INTEGRITY conditional block should be moved.
Fix.
At the top of each routine there is a 'memset(&databuf, 0, sizeof(databuf));' call...
So databuf.length is being initialized to zero
And passing databuf with length set to zero to gss_wrap() will do what, exactly?
Could the bug tracker admin change the submitter to me so I can update this bug with a patch?