(Data): Use right variable. From Tomas Olsson

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16263 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-10-31 09:27:36 +00:00
parent 9ccab13242
commit f7f36911ed

View File

@@ -125,8 +125,8 @@ Data(Authenticator *ap, int type, const void *d, int c)
if (c == -1)
c = strlen((const char*)cd);
for (cp = cd; cp - cd < c; p++, len++)
if (*p == IAC)
for (cp = cd; cp - cd < c; cp++, len++)
if (*cp == IAC)
len++;
p0 = malloc(len);