From f7c2bf756ac9120bdd23d023fda464f96b75bd3f Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sat, 18 Sep 2010 22:50:26 +0200 Subject: [PATCH] Remove duplicate mstm tag in server-info reply --- src/httpd_daap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/httpd_daap.c b/src/httpd_daap.c index 7c094025..5551f537 100644 --- a/src/httpd_daap.c +++ b/src/httpd_daap.c @@ -1174,7 +1174,7 @@ daap_reply_server_info(struct evhttp_request *req, struct evbuffer *evbuf, char passwd = cfg_getstr(lib, "password"); name = cfg_getstr(lib, "name"); - len = 169 + strlen(name); + len = 157 + strlen(name); if (!supports_update) len -= 9; @@ -1210,7 +1210,6 @@ daap_reply_server_info(struct evhttp_request *req, struct evbuffer *evbuf, char dmap_add_int(evbuf, "mstt", 200); /* 12 */ dmap_add_int(evbuf, "mpro", mpro); /* 12 */ dmap_add_int(evbuf, "apro", apro); /* 12 */ - dmap_add_int(evbuf, "mstm", 1800); /* 12 */ dmap_add_string(evbuf, "minm", name); /* 8 + strlen(name) */ dmap_add_int(evbuf, "mstm", DAAP_SESSION_TIMEOUT); /* 12 */