diff options
Diffstat (limited to 'plugins/check_real.c')
| -rw-r--r-- | plugins/check_real.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_real.c b/plugins/check_real.c index 36f64134..00bd4d20 100644 --- a/plugins/check_real.c +++ b/plugins/check_real.c | |||
| @@ -163,22 +163,22 @@ main (int argc, char **argv) | |||
| 163 | 163 | ||
| 164 | /* Part I - Server Check */ | 164 | /* Part I - Server Check */ |
| 165 | 165 | ||
| 166 | /* send the OPTIONS request */ | 166 | /* send the DESCRIBE request */ |
| 167 | sprintf (buffer, "DESCRIBE rtsp://%s:%d%s RTSP/1.0\n", host_name, | 167 | sprintf (buffer, "DESCRIBE rtsp://%s:%d%s RTSP/1.0\r\n", host_name, |
| 168 | server_port, server_url); | 168 | server_port, server_url); |
| 169 | result = send (sd, buffer, strlen (buffer), 0); | 169 | result = send (sd, buffer, strlen (buffer), 0); |
| 170 | 170 | ||
| 171 | /* send the header sync */ | 171 | /* send the header sync */ |
| 172 | sprintf (buffer, "CSeq: 2\n"); | 172 | sprintf (buffer, "CSeq: 2\r\n"); |
| 173 | result = send (sd, buffer, strlen (buffer), 0); | 173 | result = send (sd, buffer, strlen (buffer), 0); |
| 174 | 174 | ||
| 175 | /* send a newline so the server knows we're done with the request */ | 175 | /* send a newline so the server knows we're done with the request */ |
| 176 | sprintf (buffer, "\n"); | 176 | sprintf (buffer, "\r\n"); |
| 177 | result = send (sd, buffer, strlen (buffer), 0); | 177 | result = send (sd, buffer, strlen (buffer), 0); |
| 178 | 178 | ||
| 179 | /* watch for the REAL connection string */ | 179 | /* watch for the REAL connection string */ |
| 180 | result = recv (sd, buffer, MAX_INPUT_BUFFER - 1, 0); | 180 | result = recv (sd, buffer, MAX_INPUT_BUFFER - 1, 0); |
| 181 | buffer[result] = "\0"; /* null terminate recieved buffer */ | 181 | buffer[result] = '\0'; /* null terminate recieved buffer */ |
| 182 | 182 | ||
| 183 | /* return a CRITICAL status if we couldn't read any data */ | 183 | /* return a CRITICAL status if we couldn't read any data */ |
| 184 | if (result == -1) { | 184 | if (result == -1) { |
