Text   |  XML   |  ReML   |   Visible Warnings:

Cast Alters Value  at auth-request.c:1241

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

auth_request_proxy_is_self

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/auth-request.c)expand/collapse
Show more  
 1219  static bool auth_request_proxy_is_self(struct auth_request *request)
 1220  {
 1221          const char *const *tmp, *host = NULL, *port = NULL, *destuser = NULL;
 1222          struct ip_addr ip;
 1223   
 1224          tmp = auth_stream_split(request->extra_fields);
 1225          for (; *tmp != NULL; tmp++) {
 1226                  if (strncmp(*tmp, "host=", 5) == 0)
 1227                          host = *tmp + 5;
 1228                  else if (strncmp(*tmp, "port=", 5) == 0)
 1229                          port = *tmp + 5;
 1230                  if (strncmp(*tmp, "destuser=", 9) == 0)
 1231                          destuser = *tmp + 9;
 1232          }
 1233   
 1234[+]         if (host == NULL || net_addr2ip(host, &ip) < 0) {
 1235                  /* broken setup */
 1236                  return FALSE;
 1237          }
 1238[+]         if (!net_ip_compare(&ip, &request->local_ip))
 1239                  return FALSE;
 1240   
 1241          if (port != NULL && (unsigned int)atoi(port) != request->local_port)
Show more  




Change Warning 7588.24597 : Cast Alters Value

Priority:
State:
Finding:
Owner:
Note: