Changeset 47726b5e in mainline


Ignore:
Timestamp:
2015-07-07T09:16:55Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6accc5cf, fb4d788
Parents:
2654afb
Message:

Fix bug in address parsing (thx Jan Buchar)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/inet/addr.c

    r2654afb r47726b5e  
    306306                i++;
    307307
    308                 if (*cur == '\0')
     308                if (*cur == '\0' || *cur == '/')
    309309                        break;
    310310
     
    317317
    318318        if (prefix != NULL) {
     319                if (*cur != '/')
     320                        return EINVAL;
     321                cur++;
     322
    319323                *prefix = strtoul(cur, &cur, 10);
    320324                if (*prefix > 32)
Note: See TracChangeset for help on using the changeset viewer.