(main): call k_getportbyname with port number in network-byte-order
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7682 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -761,14 +761,15 @@ main(int argc, char **argv) | ||||
| 	    port = htons(port); | ||||
| 	} | ||||
|     } | ||||
|     if (port == 0) | ||||
|     if (port == 0) { | ||||
| #ifdef KRB5 | ||||
| 	port = krb5_getportbyname (context, "kpop", "tcp", 1109); | ||||
| #elif defined(KRB4) | ||||
|     port = k_getportbyname ("kpop", "tcp", 1109); | ||||
| 	port = k_getportbyname ("kpop", "tcp", htons(1109)); | ||||
| #else | ||||
| #error must define KRB4 or KRB5 | ||||
| #endif | ||||
|     } | ||||
|  | ||||
|     parse_pobox (pobox, &host, &user); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Assar Westerlund
					Assar Westerlund