->max_alloc to krb5_storage and use it

This commit is contained in:
Love Hornquist Astrand
2011-05-08 00:16:02 -07:00
parent 35652e4a03
commit bd2d4c2f79
7 changed files with 87 additions and 10 deletions

View File

@@ -145,6 +145,7 @@ krb5_storage_from_mem(void *buf, size_t len)
sp->seek = mem_seek;
sp->trunc = mem_trunc;
sp->free = NULL;
sp->max_alloc = UINT_MAX/8;
return sp;
}
@@ -203,5 +204,6 @@ krb5_storage_from_readonly_mem(const void *buf, size_t len)
sp->seek = mem_seek;
sp->trunc = mem_no_trunc;
sp->free = NULL;
sp->max_alloc = UINT_MAX/8;
return sp;
}