comparison src/core/ngx_md5.c @ 4279:21167183825d

Reverted incorrect change in internal md5 (part of r3928).
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 14 Nov 2011 13:38:02 +0000
parents ce1ba4a312d7
children 9eefb38f0005
comparison
equal deleted inserted replaced
4278:f57229cba7ad 4279:21167183825d
45 if (size < free) { 45 if (size < free) {
46 ngx_memcpy(&ctx->buffer[used], data, size); 46 ngx_memcpy(&ctx->buffer[used], data, size);
47 return; 47 return;
48 } 48 }
49 49
50 data = ngx_cpymem(&ctx->buffer[used], data, free); 50 ngx_memcpy(&ctx->buffer[used], data, free);
51 data = (u_char *) data + free;
51 size -= free; 52 size -= free;
52 (void) ngx_md5_body(ctx, ctx->buffer, 64); 53 (void) ngx_md5_body(ctx, ctx->buffer, 64);
53 } 54 }
54 55
55 if (size >= 64) { 56 if (size >= 64) {