daemon: Print error for invalid chunk.cancel field.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 18 Mar 2011 11:21:55 +0000 (11:21 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 18 Mar 2011 11:21:55 +0000 (11:21 +0000)
commit1e68f84c5a46f3ff650368a897bd4113bd3f4aea
tree502897efd9b496ab0f8a666cd431b5fed1d82794
parent65852011d8f5150c5c0bcbfeac90e2fd784905c5
daemon: Print error for invalid chunk.cancel field.

The chunk.cancel field should always be [0|1].  If it is not then
something has gone badly wrong -- probably loss of synchronization.
If this occurs print a debug message and return error from
receive_file function.
daemon/proto.c