Package: hnb / 1.9.18+ds1-1

05_return_null_if_node_is_null.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
hnb (1.9.17-4)  * Return NULL if node is NULL in node_get.  (Closes: #245875)

--- hnb-1.9.18.orig/src/node.c
+++ hnb-1.9.18/src/node.c
@@ -88,6 +88,9 @@ void node_set (Node *node, char *name, c
 {
 	Node_AttItem *att;
 
+	if (node == NULL)
+		return;
+
 	att = node->attrib;
 	while (att) {
 		if (!strcmp (att->name, name)) {