Browse code

- extra test added - lump carrying empty strings will not be added

Bogdan-Andrei Iancu authored on 12/09/2003 13:20:59
Showing 1 changed files
... ...
@@ -69,6 +69,11 @@ int add_lump_rpl(struct sip_msg * msg, struct lump_rpl* lump)
69 69
 {
70 70
 	struct lump_rpl *foo;
71 71
 
72
+	if (lump->text.s==0 || lump->text.len==0) {
73
+		LOG(L_ERR,"ERROR:add_lump_rpl: I won't add an empty lump!\n");
74
+		return -1;
75
+	}
76
+
72 77
 	if (!msg->reply_lump)
73 78
 	{
74 79
 		msg->reply_lump = lump;