summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e4af02e)
raw | patch | inline | side by side (parent: e4af02e)
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Sat, 20 Jan 2007 06:07:48 +0000 (06:07 +0000) | ||
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Sat, 20 Jan 2007 06:07:48 +0000 (06:07 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1568 f882894a-f735-0410-b71e-b25c423dba1c
CHANGES | patch | blob | history | |
THANKS.in | patch | blob | history | |
plugins/netutils.c | patch | blob | history |
index d1abed0bb151bb967ae74f38bb7e011d465edbc2..05d3ba28cd5ab13cd4530dc71b5f96accf349f95 100644 (file)
--- a/CHANGES
+++ b/CHANGES
Fixed check_swap for HP/UX where swapinfo command was incorrect
Fixed check_disk inode threshold checks, regressed at r1.4.4.
Fixed crit/warn for check_disk perf data
+ Fixed buffer overflow in check_procs
+ Fixed error handling for UNIX sockets in netutils.c
1.4.5
Fixed bug in perl's is_hostname routine
diff --git a/THANKS.in b/THANKS.in
index 96249115e27c8d09efd2a8174faa2c5382a1d7fb..0d0f4a550120c0a5d631acda79dfa444dee5b030 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
Matthias Eble
Sebastian Schubert
Jason Hoos
+Chris Grim
diff --git a/plugins/netutils.c b/plugins/netutils.c
index 9294f3a2101c33a9911f42b30893cd775bbaa578..e6ffc548f399b54ca23b5a9f64405da0b6a9c1a9 100644 (file)
--- a/plugins/netutils.c
+++ b/plugins/netutils.c
su.sun_family = AF_UNIX;
strncpy(su.sun_path, host_name, UNIX_PATH_MAX);
*sd = socket(PF_UNIX, SOCK_STREAM, 0);
- if(sd < 0){
+ if(*sd < 0){
die(STATE_UNKNOWN, _("Socket creation failed"));
}
result = connect(*sd, (struct sockaddr *)&su, sizeof(su));