All call sites have previously dereferenced the pointer, but to keep
the interface simple, keep the null check, and move the dereference to
after it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20300
dc483132-0cff-0310-8789-
dd5450dbe970
int
gssint_put_der_length(unsigned int length, unsigned char **buf, unsigned int max_len)
{
- unsigned char *s = *buf, *p;
+ unsigned char *s, *p;
unsigned int buf_len = 0;
int i, first;
if (buf == 0 || max_len < 1)
return (-1);
+ s = *buf;
+
/* Single byte is the length */
if (length < 128) {
*s++ = length;