Commit 56301330 56301330445a52ec4c39fb6d75d1ef68f3f58f61 by Alain Magloire

Little bugglet should be htons(port) instead htonl(port) it was

so obvious that it took me 2 hours to find, sigh ...
1 parent 0b3ced06
1 /* GNU mailutils - a suite of utilities for electronic mail 1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2000 Free Software Foundation, Inc.
3 3
4 This program is free software; you can redistribute it and/or modify 4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by 5 it under the terms of the GNU General Public License as published by
...@@ -306,7 +306,7 @@ pop3_daemon (unsigned int maxchildren) ...@@ -306,7 +306,7 @@ pop3_daemon (unsigned int maxchildren)
306 memset (&server, 0, size); 306 memset (&server, 0, size);
307 server.sin_family = AF_INET; 307 server.sin_family = AF_INET;
308 server.sin_addr.s_addr = htonl (INADDR_ANY); 308 server.sin_addr.s_addr = htonl (INADDR_ANY);
309 server.sin_port = htonl (port); 309 server.sin_port = htons (port);
310 310
311 if (bind(listenfd, (SA *) &server, size) == -1 ) 311 if (bind(listenfd, (SA *) &server, size) == -1 )
312 { 312 {
......