unsigned char ipseczeroes[IPSEC_ZEROES_SIZE]; /* zeroes! */
static char *ipspkernfs = NULL;
-static int ipspkernfs_len = 0;
int ipspkernfs_dirty = 1;
/*
if ((!ipspkernfs_dirty) && (ipspkernfs))
{
*bufp = ipspkernfs;
- return ipspkernfs_len;
+ return strlen(ipspkernfs);
}
else
ipspkernfs_dirty = 0;
if (!ipspkernfs)
return 0;
- ipspkernfs_len = k + 1;
-
for (i = 0, k = 0; i < TDB_HASHMOD; i++)
for (tdbp = tdbh[i]; tdbp != (struct tdb *) NULL; tdbp = tdbp->tdb_hnext)
{
ipspkernfs[k] = '\0';
*bufp = ipspkernfs;
- return ipspkernfs_len;
+ return strlen(ipspkernfs);
}