comparison src/dmpack.c @ 1273:132706e3b94b

Improve error handling and reporting slightly.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 03 Oct 2016 09:06:01 +0300
parents 848a88ce7a57
children 9aa51ac4e502
comparison
equal deleted inserted replaced
1272:acae5f8ebc67 1273:132706e3b94b
121 goto out; 121 goto out;
122 } 122 }
123 123
124 if (hdr.version != DPACK_VERSION) 124 if (hdr.version != DPACK_VERSION)
125 { 125 {
126 ret = DMERR_VERSION; 126 ret = DMERR_PACK_VERSION;
127 goto out; 127 goto out;
128 } 128 }
129 129
130 // Read directory 130 // Read directory
131 if (hdr.dirOffset < sizeof(hdr) || 131 if (hdr.dirOffset < sizeof(hdr) ||