Return to s_time.c CVS log | Up to [local] / src / usr.bin / openssl |
version 1.32, 2018/09/17 15:37:35 | version 1.33, 2019/07/03 03:24:02 | ||
---|---|---|---|
|
|
||
if (s_time_config.www_path != NULL) { | if (s_time_config.www_path != NULL) { | ||
retval = snprintf(buf, sizeof buf, | retval = snprintf(buf, sizeof buf, | ||
"GET %s HTTP/1.0\r\n\r\n", s_time_config.www_path); | "GET %s HTTP/1.0\r\n\r\n", s_time_config.www_path); | ||
if (retval == -1 || retval >= sizeof buf) { | if (retval < 0 || retval >= sizeof buf) { | ||
fprintf(stderr, "URL too long\n"); | fprintf(stderr, "URL too long\n"); | ||
return 0; | return 0; | ||
} | } |