projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jsonrpc: Check RPC status after trying to send, not before.
[openvswitch]
/
ofproto
/
status.c
diff --git
a/ofproto/status.c
b/ofproto/status.c
index b2cb93568abc91fc0872fd5bb914f8d8acdf6f7e..5e61888242cf4cccdf68548aa1b7807819deb096 100644
(file)
--- a/
ofproto/status.c
+++ b/
ofproto/status.c
@@
-177,7
+177,7
@@
switch_status_cb(struct status_reply *sr, void *ss_)
struct switch_status *
switch_status_create(const struct ofproto *ofproto)
{
struct switch_status *
switch_status_create(const struct ofproto *ofproto)
{
- struct switch_status *ss = x
calloc(1,
sizeof *ss);
+ struct switch_status *ss = x
zalloc(
sizeof *ss);
ss->booted = time_now();
list_init(&ss->categories);
ss->config_cat = switch_status_register(ss, "config", config_status_cb,
ss->booted = time_now();
list_init(&ss->categories);
ss->config_cat = switch_status_register(ss, "config", config_status_cb,