diff options
author | Hans de Goede <hdegoede@redhat.com> | 2013-02-22 17:24:41 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2013-02-22 17:54:23 +0100 |
commit | 048bf08399846342812b20e6844e2e8f4036eac3 (patch) | |
tree | 44a73530b41abd61098099b3b10fed61230e9499 /src | |
parent | 1dd73dd32b024c87bdccf86af8c36ff1ff9cc6f4 (diff) |
file-xfers: Check for duplicate task ids
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vdagent-file-xfers.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vdagent-file-xfers.c b/src/vdagent-file-xfers.c index cef7424..de38eca 100644 --- a/src/vdagent-file-xfers.c +++ b/src/vdagent-file-xfers.c @@ -160,6 +160,12 @@ void vdagent_file_xfers_start(struct vdagent_file_xfers *xfers, struct stat st; int i; + if (g_hash_table_lookup(xfers->xfers, GUINT_TO_POINTER(msg->id))) { + syslog(LOG_ERR, "file-xfer: error id %u already exists, ignoring!", + msg->id); + return; + } + task = vdagent_parse_start_msg(msg); if (task == NULL) { goto error; |