summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b7beee1)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
toread -= readlen;
if (!toread) {
ret = 0; /* continue reading next packet */
toread -= readlen;
if (!toread) {
ret = 0; /* continue reading next packet */
+
+read_padding:
+ toread = (header.packet_size - header.content_size) / CHAR_BIT;
+ ret = fseek(in, toread, SEEK_CUR);
+ if (ret < 0) {
+ fprintf(stdout, "[warning] Missing padding at end of file\n");
+ ret = 0;
+ }
+ return ret;