Fix bandwidth slot reservation from misbehavior
authorNeutron Soutmun <neo.neutron@gmail.com>
Sun, 18 Aug 2013 15:28:45 +0000 (22:28 +0700)
committerNeutron Soutmun <neo.neutron@gmail.com>
Sun, 18 Aug 2013 15:28:45 +0000 (22:28 +0700)
commit6aea7729e9dbecd07fff1afe0464c57b3656532c
treecb74372f42f6051c617b87a2add45bd2016b56cc
parent98d2adf9dceadd529e61c9d6c13d88bd83cbcd47
Fix bandwidth slot reservation from misbehavior

[rahunasd]
* src/rh-task-bandwidth.c:
  - The reservation slots are not initialized.
  - Bandwith slot reservation could run into the infinite loop,
    to prevent this issue, keep seeding of random number change every loop.
  - The process does not clear the reservation when the user logout.

Signed-off-by: Neutron Soutmun <neo.neutron@gmail.com>
src/rh-task-bandwidth.c