Changeset 5b3d57bb072aaddf75141d9ba70202c4296aa3bb
- 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
| rbbb30c6 |
r5b3d57b |
|
| 1059 | 1059 | socklen_t glob_len = 0; |
|---|
| 1060 | 1060 | unsigned glob_count = 1; |
|---|
| | 1061 | int port = 0; |
|---|
| 1061 | 1062 | |
|---|
| 1062 | 1063 | /* TODO: use iconv and charset attribute instead of EnsureUTF8 */ |
|---|
| … | … | |
| 1241 | 1242 | goto error; |
|---|
| 1242 | 1243 | } |
|---|
| 1243 | | int port = atoi (++data); |
|---|
| | 1244 | port = atoi (++data); |
|---|
| 1244 | 1245 | if (port <= 0 || port >= 65536) |
|---|
| 1245 | 1246 | { |
|---|
| … | … | |
| 1278 | 1279 | goto error; |
|---|
| 1279 | 1280 | } |
|---|
| | 1281 | net_SetPort ((struct sockaddr *)&m->addr, htons (port)); |
|---|
| 1280 | 1282 | break; |
|---|
| 1281 | 1283 | } |
|---|