Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 065d2d5 in mainline


Ignore:
Timestamp:
2010-11-02T22:32:05Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
38c0a9c
Parents:
457a6f5
Message:

Do not leak the 'names' measured string values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/udp/udp.c

    r457a6f5 r065d2d5  
    107107        measured_string_t names[] = {
    108108                {
    109                         str_dup("UDP_CHECKSUM_COMPUTING"),
     109                        (char *) "UDP_CHECKSUM_COMPUTING",
    110110                        22
    111111                },
    112112                {
    113                         str_dup("UDP_AUTOBINDING"),
     113                        (char *) "UDP_AUTOBINDING",
    114114                        15
    115115                }
     
    142142        udp_globals.last_used_port = UDP_FREE_PORTS_START - 1;
    143143
    144         // get configuration
    145144        udp_globals.checksum_computing = NET_DEFAULT_UDP_CHECKSUM_COMPUTING;
    146145        udp_globals.autobinding = NET_DEFAULT_UDP_AUTOBINDING;
     146
     147        // get configuration
    147148        configuration = &names[0];
    148149        ERROR_PROPAGATE(net_get_conf_req(udp_globals.net_phone, &configuration,
Note: See TracChangeset for help on using the changeset viewer.