git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto: Fix potential leak during flow mods.
[sliver-openvswitch.git]
/
lib
/
rtbsd.c
diff --git
a/lib/rtbsd.c
b/lib/rtbsd.c
index
c5fe03a
..
b706c20
100644
(file)
--- a/
lib/rtbsd.c
+++ b/
lib/rtbsd.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 2011 Gaetano Catalli.
+ * Copyright (c) 2011
, 2013
Gaetano Catalli.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-55,13
+55,13
@@
rtbsd_notifier_register(struct rtbsd_notifier *notifier,
notify_sock = socket(PF_ROUTE, SOCK_RAW, 0);
if (notify_sock < 0) {
VLOG_WARN("could not create PF_ROUTE socket: %s",
notify_sock = socket(PF_ROUTE, SOCK_RAW, 0);
if (notify_sock < 0) {
VLOG_WARN("could not create PF_ROUTE socket: %s",
- strerror(errno));
+
ovs_
strerror(errno));
return errno;
}
error = set_nonblocking(notify_sock);
if (error) {
VLOG_WARN("error set_nonblocking PF_ROUTE socket: %s",
return errno;
}
error = set_nonblocking(notify_sock);
if (error) {
VLOG_WARN("error set_nonblocking PF_ROUTE socket: %s",
- strerror(error));
+
ovs_
strerror(error));
return error;
}
} else {
return error;
}
} else {
@@
-120,7
+120,7
@@
rtbsd_notifier_run(void)
VLOG_WARN_RL(&rl, "PF_ROUTE receive buffer overflowed");
} else {
VLOG_WARN_RL(&rl, "error reading PF_ROUTE socket: %s",
VLOG_WARN_RL(&rl, "PF_ROUTE receive buffer overflowed");
} else {
VLOG_WARN_RL(&rl, "error reading PF_ROUTE socket: %s",
- strerror(errno));
+
ovs_
strerror(errno));
}
rtbsd_report_notify_error();
}
}
rtbsd_report_notify_error();
}