When allocating storage for the header buffer, update the internal
output buffer pointer as well.
ticket: 6412
target_version: 1.7
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22081
dc483132-0cff-0310-8789-
dd5450dbe970
gss_headerlen += gss_trailerlen;
}
- if (header->type & GSS_IOV_BUFFER_FLAG_ALLOCATE)
+ if (header->type & GSS_IOV_BUFFER_FLAG_ALLOCATE) {
code = kg_allocate_iov(header, (size_t) gss_headerlen);
- else if (header->buffer.length < gss_headerlen)
+ outbuf = (unsigned char *)header->buffer.value;
+ } else if (header->buffer.length < gss_headerlen)
code = KRB5_BAD_MSIZE;
if (code != 0)
goto cleanup;