[gssdp] MX header must be a positive integer
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] MX header must be a positive integer
- Date: Wed, 29 Jun 2011 21:20:08 +0000 (UTC)
commit 8d9243f52c31ef8ba5139b5eeba95dc8e0f1cc1d
Author: Jens Georg <mail jensge org>
Date: Wed Jun 29 18:52:50 2011 +0200
MX header must be a positive integer
libgssdp/gssdp-resource-group.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgssdp/gssdp-resource-group.c b/libgssdp/gssdp-resource-group.c
index da69303..ade83ba 100644
--- a/libgssdp/gssdp-resource-group.c
+++ b/libgssdp/gssdp-resource-group.c
@@ -768,7 +768,7 @@ message_received_cb (GSSDPClient *client,
/* Extract MX */
mx_str = soup_message_headers_get_one (headers, "MX");
- if (!mx_str || atoi (mx_str) == 0) {
+ if (!mx_str || atoi (mx_str) <= 0) {
g_warning ("Discovery request did not have a valid MX header");
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]