Print this page
9886 libresolv2: fix fallthrough in ns_sprintrrf()

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libresolv2/common/nameser/ns_print.c
          +++ new/usr/src/lib/libresolv2/common/nameser/ns_print.c
↓ open down ↓ 886 lines elided ↑ open up ↑
 887  887  
 888  888                          for (n = 0; n < len; n += 48) {
 889  889                                  T(addstr(leader, strlen(leader),
 890  890                                           &buf, &buflen));
 891  891                                  T(addstr(base64_dhcid + n, MIN(len - n, 48),
 892  892                                           &buf, &buflen));
 893  893                          }
 894  894                          if (len > 15)
 895  895                                  T(addstr(" )", 2, &buf, &buflen));
 896  896                  }
      897 +                break;
 897  898          }
 898      -        /* FALLTHROUGH */
 899  899  
 900  900          case ns_t_ipseckey: {
 901  901                  int n;
 902  902                  unsigned int siz;
 903  903                  char base64_key[8192];
 904  904                  const char *leader;
 905  905          
 906  906                  if (rdlen < 2)
 907  907                          goto formerr;
 908  908  
↓ open down ↓ 70 lines elided ↑ open up ↑
 979  979  
 980  980                          for (n = 0; n < len; n += 48) {
 981  981                                  T(addstr(leader, strlen(leader),
 982  982                                           &buf, &buflen));
 983  983                                  T(addstr(base64_key + n, MIN(len - n, 48),
 984  984                                           &buf, &buflen));
 985  985                          }
 986  986                          if (len > 15)
 987  987                                  T(addstr(" )", 2, &buf, &buflen));
 988  988                  }
      989 +                break;
 989  990          }
 990      -        /* FALLTHROUGH */
 991  991  
 992  992          case ns_t_hip: {
 993  993                  unsigned int i, hip_len, algorithm, key_len;
 994  994                  char base64_key[NS_MD5RSA_MAX_BASE64];
 995  995                  unsigned int siz;
 996  996                  const char *leader = "\n\t\t\t\t\t";
 997  997                  
 998  998                  hip_len = *rdata++;
 999  999                  algorithm = *rdata++;
1000 1000                  key_len = ns_get16(rdata);
↓ open down ↓ 238 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX