diff options
author | Amit Shah <amit.shah@redhat.com> | 2010-08-23 15:51:25 +0530 |
---|---|---|
committer | Amit Shah <amit.shah@redhat.com> | 2010-08-23 15:51:25 +0530 |
commit | f46c29597cd8960e5b5f5b23331b1c0164dd2c57 (patch) | |
tree | dcabb390b98597513bca4010c65843d7cb8c95ba | |
parent | e1f100f1fbe0285c7efdfc30f38bece766e59efe (diff) | |
download | test-virtserial-f46c29597cd8960e5b5f5b23331b1c0164dd2c57.tar.gz test-virtserial-f46c29597cd8960e5b5f5b23331b1c0164dd2c57.tar.xz test-virtserial-f46c29597cd8960e5b5f5b23331b1c0164dd2c57.zip |
auto-virtserial-guest: Add a 'default' target for key switch
If using a newer host program than the guest which has a newer key, the
host can keep waiting for the guest to respond, and the guest never
will..
Signed-off-by: Amit Shah <amit.shah@redhat.com>
-rw-r--r-- | auto-virtserial-guest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/auto-virtserial-guest.c b/auto-virtserial-guest.c index 2c84c27..b0faa10 100644 --- a/auto-virtserial-guest.c +++ b/auto-virtserial-guest.c @@ -594,6 +594,9 @@ back_to_open: ret = join_read_thread(gpkt.value); send_report(cfd, ret); break; + default: + send_report(cfd, -ERANGE); + break; } } return 0; |