- if ((mode >= 0) && (mode <= mhash_count())) {
- ctx = mhash_init(mode);
- }
- if ((!ctx) || (ctx == MHASH_FAILED))
-#endif
- {
- HTTP_G(etag).mode = HTTP_ETAG_MD5;
- goto invalid_flag;
+ default:
+ if ((mode < 0) || (mode > mhash_count()) || (!(ctx = mhash_init(mode)))) {
+ http_error_ex(HE_ERROR, HE_RUNTIME, "Invalid ETag mode: %ld", mode);