~ubuntu-branches/ubuntu/natty/freeradius/natty-security

« back to all changes in this revision

Viewing changes to src/modules/rlm_jradius/rlm_jradius.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-01-04 21:40:02 UTC
  • mfrom: (1.1.14 upstream) (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100104214002-41gcmr2dd7sebn58
Tags: 2.1.8+dfsg-1ubuntu1
Resynchronize with Debian. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
797
797
    }
798
798
 
799
799
    /*
 
800
     *     WiMAX combo-ip address
 
801
     *     paircreate() cannot recognize the real type of the address.
 
802
     *     ..ugly code...
 
803
     */
 
804
    if (vp->type==PW_TYPE_COMBO_IP) {
 
805
        switch (alen) {
 
806
            case 4:
 
807
                vp->type = PW_TYPE_IPADDR;
 
808
                break;
 
809
            case 16:
 
810
                vp->type = PW_TYPE_IPV6ADDR;
 
811
                break;
 
812
        }
 
813
    }
 
814
 
 
815
    /*
800
816
     *     Fill in the attribute value based on type
801
817
     */
802
818
    switch (vp->type) {