}
const char *
-VRT_r_obj_hash(struct sess *sp)
+VRT_r_obj_hash(const struct sess *sp)
{
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
+ if (sp->obj == NULL)
+ return (NULL);
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
+ if (sp->obj->objhead == NULL)
+ return (NULL);
CHECK_OBJ_NOTNULL(sp->obj->objhead, OBJHEAD_MAGIC);
return (sp->obj->objhead->hash);
}
double VRT_r_obj_prefetch(const struct sess *);
void VRT_l_obj_prefetch(const struct sess *, double);
double VRT_r_obj_lastuse(const struct sess *);
-const char * VRT_r_obj_hash();
+const char * VRT_r_obj_hash(const struct sess *);
const char * VRT_r_resp_proto(const struct sess *);
void VRT_l_resp_proto(const struct sess *, const char *, ...);
int VRT_r_resp_status(const struct sess *);