summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fb3a43a)
The pointer was used and not the struct size.
Signed-off-by: David Goulet <dgoulet@efficios.com>
goto error;
}
ret = read(fd, relay_connection, sizeof(struct relay_command));
goto error;
}
ret = read(fd, relay_connection, sizeof(struct relay_command));
- if (ret < 0 || ret < sizeof(relay_connection)) {
+ if (ret < 0 || ret < sizeof(struct relay_command)) {
PERROR("read relay cmd pipe");
goto error_read;
}
PERROR("read relay cmd pipe");
goto error_read;
}