discover: pxe: Avoid dereferencing null pointer
[petitboot] / discover / kboot-parser.c
index f7f75e07ceae60212f3ccef5cea34d7ed3ef93aa..bf9c5eb2fe98f5f59056cad85f47e018cb31a674 100644 (file)
@@ -5,6 +5,7 @@
 #include <assert.h>
 #include <stdlib.h>
 #include <string.h>
+#include <i18n/i18n.h>
 
 #include "log/log.h"
 #include "talloc/talloc.h"
@@ -188,6 +189,9 @@ static int kboot_parse(struct discover_context *dc)
                        continue;
 
                conf_parse_buf(conf, buf, len);
+               device_handler_status_dev_info(dc->handler, dc->device,
+                               _("Parsed kboot configuration from %s"),
+                               *filename);
                talloc_free(buf);
        }