Mercurial > dropbear
comparison svr-authpubkeyoptions.c @ 1129:45830474d83c coverity
merge up to date, attempt to fix travis.yml
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 12 Jun 2015 23:02:15 +0800 |
parents | c45d65392c1a |
children | 5709b15a1b57 |
comparison
equal
deleted
inserted
replaced
1077:26c1f9b8f82e | 1129:45830474d83c |
---|---|
118 static int match_option(buffer *options_buf, const char *opt_name) { | 118 static int match_option(buffer *options_buf, const char *opt_name) { |
119 const unsigned int len = strlen(opt_name); | 119 const unsigned int len = strlen(opt_name); |
120 if (options_buf->len - options_buf->pos < len) { | 120 if (options_buf->len - options_buf->pos < len) { |
121 return DROPBEAR_FAILURE; | 121 return DROPBEAR_FAILURE; |
122 } | 122 } |
123 if (strncasecmp(buf_getptr(options_buf, len), opt_name, len) == 0) { | 123 if (strncasecmp((const char *) buf_getptr(options_buf, len), opt_name, len) == 0) { |
124 buf_incrpos(options_buf, len); | 124 buf_incrpos(options_buf, len); |
125 return DROPBEAR_SUCCESS; | 125 return DROPBEAR_SUCCESS; |
126 } | 126 } |
127 return DROPBEAR_FAILURE; | 127 return DROPBEAR_FAILURE; |
128 } | 128 } |