[master] c29c358 Fix a really stupid typo: s/ibufl/obufl/
Poul-Henning Kamp
phk at varnish-cache.org
Wed Mar 30 14:59:22 CEST 2011
commit c29c3582f4cd1ccf45155cef0d8814b734c3607c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Mar 30 12:59:06 2011 +0000
Fix a really stupid typo: s/ibufl/obufl/
diff --git a/bin/varnishd/cache_gzip.c b/bin/varnishd/cache_gzip.c
index 4809a3e..fd360cf 100644
--- a/bin/varnishd/cache_gzip.c
+++ b/bin/varnishd/cache_gzip.c
@@ -364,7 +364,10 @@ VGZ_WrwGunzip(struct sess *sp, struct vgz *vg, void *ibuf, ssize_t ibufl,
const void *dp;
CHECK_OBJ_NOTNULL(vg, VGZ_MAGIC);
+ assert(obufl > 16);
VGZ_Ibuf(vg, ibuf, ibufl);
+ if (ibufl == 0)
+ return (VGZ_OK);
VGZ_Obuf(vg, obuf + *obufp, ibufl - *obufp);
do {
if (obufl == *obufp)
@@ -382,7 +385,7 @@ VGZ_WrwGunzip(struct sess *sp, struct vgz *vg, void *ibuf, ssize_t ibufl,
if (WRW_Flush(sp->wrk))
return (-1);
*obufp = 0;
- VGZ_Obuf(vg, obuf + *obufp, ibufl - *obufp);
+ VGZ_Obuf(vg, obuf + *obufp, obufl - *obufp);
}
} while (!VGZ_IbufEmpty(vg));
return (i);
More information about the varnish-commit
mailing list