unsigned char buf[1000];
long length = 0;
int nbytes;
+ ap_off_t offset = 0L;
ap_MD5Init(&context);
if (xlate) {
length += nbytes;
ap_MD5Update(&context, buf, nbytes);
}
- ap_seek(infile, 0L, APR_SET);
+ ap_seek(infile, APR_SET, &offset);
return ap_md5contextTo64(p, &context);
}
unsigned char buf[1000];
long length = 0;
ap_ssize_t nbytes;
+ ap_off_t offset = 0L;
ap_MD5Init(&context);
nbytes = sizeof(buf);
length += nbytes;
ap_MD5Update(&context, buf, nbytes);
}
- ap_seek(infile, 0L, APR_SET);
+ ap_seek(infile, APR_SET, &offset);
return ap_md5contextTo64(p, &context);
}