Changeset 5b3d57bb072aaddf75141d9ba70202c4296aa3bb

Show
Ignore:
Timestamp:
20/02/07 21:54:31 (2 years ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1172004871 +0000
git-parent:

[14f7066ad84126dfa46dec5d8e7dd9bbe72f7e4f]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1172004871 +0000
Message:

Fix port number setting when there is no session-level connection line

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/services_discovery/sap.c

    rbbb30c6 r5b3d57b  
    10591059    socklen_t glob_len = 0; 
    10601060    unsigned glob_count = 1; 
     1061    int port = 0; 
    10611062 
    10621063    /* TODO: use iconv and charset attribute instead of EnsureUTF8 */ 
     
    12411242                    goto error; 
    12421243                } 
    1243                 int port = atoi (++data); 
     1244                port = atoi (++data); 
    12441245                if (port <= 0 || port >= 65536) 
    12451246                { 
     
    12781279                        goto error; 
    12791280                    } 
     1281                    net_SetPort ((struct sockaddr *)&m->addr, htons (port)); 
    12801282                    break; 
    12811283                }