ALT Linux repositórios
Group :: Sistema/Servidores
RPM: nut
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: nut-2.6.0-alt-upsstats.patch
Download
Download
diff -U 3 -r nut-2.6.0.orig/clients/upsstats.c nut-2.6.0/clients/upsstats.c
--- nut-2.6.0.orig/clients/upsstats.c 2011-02-08 12:51:41 +0200
+++ nut-2.6.0/clients/upsstats.c 2011-02-08 12:54:26 +0200
@@ -351,6 +351,9 @@
char *newups, *newhost;
int newport;
+ if (!currups)
+ return;
+
/* try to minimize reconnects */
if (lastups) {
@@ -736,7 +739,8 @@
return 1;
}
- currups = currups->next;
+ if (currups)
+ currups = currups->next;
if (currups) {
fseek(tf, forofs, SEEK_SET);