Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at master-settings.c:1289

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

parse_setting

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/master/master-settings.c)expand/collapse
Show more  
 1220  static const char *parse_setting(const char *key, const char *value,
 1221                                   struct settings_parse_ctx *ctx)
 1222  {
 1223          const char *error;
 1224   
 1225          switch (ctx->type) {
 1226          case SETTINGS_TYPE_ROOT:
 1227          case SETTINGS_TYPE_SERVER:
 1228                  error = NULL;
 1229                  if (ctx->protocol == MAIL_PROTOCOL_ANY ||
 1230                      ctx->protocol == MAIL_PROTOCOL_IMAP) {
 1231                          error = parse_setting_from_defs(settings_pool,
 1232                                                          setting_defs,
 1233                                                          ctx->server->imap,
 1234                                                          key, value);
 1235                  }
 1236   
 1237                  if (error == NULL &&
 1238                      (ctx->protocol == MAIL_PROTOCOL_ANY ||
 1239                       ctx->protocol == MAIL_PROTOCOL_POP3)) {
 1240                          error = parse_setting_from_defs(settings_pool,
 1241                                                          setting_defs,
 1242                                                          ctx->server->pop3,
 1243                                                          key, value);
 1244                  }
 1245   
 1246                  if (error == NULL)
 1247                          return NULL;
 1248   
 1249                  if (strncmp(key, "auth_", 5) == 0) {
 1250                          return parse_setting_from_defs(settings_pool,
 1251                                                         auth_setting_defs,
 1252                                                         ctx->auth,
 1253                                                         key + 5, value);
 1254                  }
 1255                  return error;
 1256          case SETTINGS_TYPE_AUTH:
 1257                  if (strncmp(key, "auth_", 5) == 0)
 1258                          key += 5;
 1259                  return parse_setting_from_defs(settings_pool, auth_setting_defs,
 1260                                                 ctx->auth, key, value);
 1261          case SETTINGS_TYPE_AUTH_SOCKET:
 1262                  return parse_setting_from_defs(settings_pool,
 1263                                                 auth_socket_setting_defs,
 1264                                                 ctx->auth_socket, key, value);
 1265          case SETTINGS_TYPE_AUTH_PASSDB:
 1266                  return parse_setting_from_defs(settings_pool,
 1267                                                 auth_passdb_setting_defs,
 1268                                                 ctx->auth_passdb, key, value);
 1269          case SETTINGS_TYPE_AUTH_USERDB:
 1270                  return parse_setting_from_defs(settings_pool,
 1271                                                 auth_userdb_setting_defs,
 1272                                                 ctx->auth_userdb, key, value);
 1273          case SETTINGS_TYPE_NAMESPACE:
 1274                  return parse_setting_from_defs(settings_pool,
 1275                                                 namespace_setting_defs,
 1276                                                 ctx->namespace, key, value);
 1277          case SETTINGS_TYPE_SOCKET:
 1278                  return parse_setting_from_defs(settings_pool,
 1279                                                 socket_setting_defs,
 1280                                                 ctx->socket, key, value);
 1281          case SETTINGS_TYPE_DICT:
 1282                  key = p_strdup(settings_pool, key);
 1283                  value = p_strdup(settings_pool, value);
 1284   
 1285                  array_append(&ctx->server->dicts, &key, 1);
 1286                  array_append(&ctx->server->dicts, &value, 1);
 1287                  return NULL;
 1288          case SETTINGS_TYPE_PLUGIN:
 1289                  key = p_strdup(settings_pool, key);
 1290                  value = p_strdup(settings_pool, value);
 1291   
 1292                  if (ctx->protocol == MAIL_PROTOCOL_ANY ||
 1293                      ctx->protocol == MAIL_PROTOCOL_IMAP) {
 1294                          array_append(&ctx->server->imap->plugin_envs, &key, 1);
 1295                          array_append(&ctx->server->imap->plugin_envs,
 1296                                       &value, 1);
 1297                  }
 1298                  if (ctx->protocol == MAIL_PROTOCOL_ANY ||
 1299                      ctx->protocol == MAIL_PROTOCOL_POP3) {
 1300                          array_append(&ctx->server->pop3->plugin_envs, &key, 1);
 1301                          array_append(&ctx->server->pop3->plugin_envs,
 1302                                       &value, 1);
 1303                  }
 1304                  return NULL;
 1305          }
 1306   
 1307          i_unreached();
 1308  }
Show more  




Change Warning 8176.26087 : Ignored Return Value

Because they are very similar, this warning shares annotations with warning 8176.26088.

Priority:
State:
Finding:
Owner:
Note: