summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubhendu Ghosh <sghosh@users.sourceforge.net>2003-06-07 00:46:41 (GMT)
committerSubhendu Ghosh <sghosh@users.sourceforge.net>2003-06-07 00:46:41 (GMT)
commitb34669fff3d779e39a3d5c6545200ec1fd571e32 (patch)
treefd19d820dd37e4dc14dfce39b8c2c2279c62c00a
parent2895fc4ae30ed7b4640b8b8a2d426582f39c0e45 (diff)
downloadmonitoring-plugins-b34669fff3d779e39a3d5c6545200ec1fd571e32.tar.gz
\r\n patch from Mathias
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@538 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_real.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_real.c b/plugins/check_real.c
index 0bfa446..535abbf 100644
--- a/plugins/check_real.c
+++ b/plugins/check_real.c
@@ -97,15 +97,15 @@ main (int argc, char **argv)
97 /* Part I - Server Check */ 97 /* Part I - Server Check */
98 98
99 /* send the OPTIONS request */ 99 /* send the OPTIONS request */
100 sprintf (buffer, "OPTIONS rtsp://%s:%d RTSP/1.0\n", host_name, server_port); 100 sprintf (buffer, "OPTIONS rtsp://%s:%d RTSP/1.0\r\n", host_name, server_port);
101 result = send (sd, buffer, strlen (buffer), 0); 101 result = send (sd, buffer, strlen (buffer), 0);
102 102
103 /* send the header sync */ 103 /* send the header sync */
104 sprintf (buffer, "CSeq: 1\n"); 104 sprintf (buffer, "CSeq: 1\r\n");
105 result = send (sd, buffer, strlen (buffer), 0); 105 result = send (sd, buffer, strlen (buffer), 0);
106 106
107 /* send a newline so the server knows we're done with the request */ 107 /* send a newline so the server knows we're done with the request */
108 sprintf (buffer, "\n"); 108 sprintf (buffer, "\r\n");
109 result = send (sd, buffer, strlen (buffer), 0); 109 result = send (sd, buffer, strlen (buffer), 0);
110 110
111 /* watch for the REAL connection string */ 111 /* watch for the REAL connection string */