14 lines
304 B
Diff
14 lines
304 B
Diff
--- a/agent/mibgroup/host/data_access/swinst_pkginfo.c
|
|
+++ b/agent/mibgroup/host/data_access/swinst_pkginfo.c
|
|
@@ -207,7 +207,9 @@
|
|
memcpy( entry->swDate, cp, date_len );
|
|
entry->swDate_len = date_len;
|
|
}
|
|
- closedir( d );
|
|
+ if (d != NULL)
|
|
+ closedir( d );
|
|
+
|
|
#ifdef HAVE_LIBPKG
|
|
}
|
|
#endif
|