From 627c573af25b602ac64c36b01c8163c592cbb494 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 26 Apr 2004 17:45:47 +0000 Subject: Debugging Fixes --- daemon/digest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'daemon/digest.c') diff --git a/daemon/digest.c b/daemon/digest.c index 099ca49..d1cfe20 100644 --- a/daemon/digest.c +++ b/daemon/digest.c @@ -241,9 +241,10 @@ int digest_parse(char* header, ha_buffer_t* buf, digest_header_t* rec, if(rec->nonce) { - void* d = ha_bufdec64(buf, rec->nonce, DIGEST_NONCE_LEN); + size_t len = DIGEST_NONCE_LEN; + void* d = ha_bufdec64(buf, rec->nonce, &len); - if(d != NULL) + if(d && len == DIGEST_NONCE_LEN) memcpy(nonce, d, DIGEST_NONCE_LEN); } } -- cgit v1.2.3