diff options
author | dimitri staessens <[email protected]> | 2016-08-04 16:59:31 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-08-04 17:24:40 +0200 |
commit | 2164c4ce67acde4282a579937a784647b66f4d72 (patch) | |
tree | 6d003ae03c321840d81a07ce0e10d906395a68fc /src/irmd/registry.c | |
parent | dd808dd6cd7eb4690bfc009eb8dd8150944f75b6 (diff) | |
download | ouroboros-2164c4ce67acde4282a579937a784647b66f4d72.tar.gz ouroboros-2164c4ce67acde4282a579937a784647b66f4d72.zip |
tools: oping: Fix division by zero
When killing the oping client before it sent an SDU, some bad
operations were being performed.
Diffstat (limited to 'src/irmd/registry.c')
-rw-r--r-- | src/irmd/registry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/registry.c b/src/irmd/registry.c index a1d1238d..fc7213ab 100644 --- a/src/irmd/registry.c +++ b/src/irmd/registry.c @@ -210,7 +210,7 @@ static struct reg_entry * reg_entry_create() } static struct reg_entry * reg_entry_init(struct reg_entry * e, - char * name) + char * name) { if (e == NULL || name == NULL) return NULL; |