Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 182046 | Differences between
and this patch

Collapse All | Expand All

(-)afpfs-ng-0.8.1/lib/afp.c (-1 lines)
Lines 19-25 Link Here
19
#include <sys/time.h>
19
#include <sys/time.h>
20
#include <sys/types.h>
20
#include <sys/types.h>
21
#include <sys/socket.h>
21
#include <sys/socket.h>
22
#include <errno.h>
23
22
24
#include <afpfs-ng/afp_protocol.h>
23
#include <afpfs-ng/afp_protocol.h>
25
#include <afpfs-ng/libafpclient.h>
24
#include <afpfs-ng/libafpclient.h>
(-)afpfs-ng-0.8.1/lib/afp_url.c (-1 / +3 lines)
Lines 21-27 Link Here
21
21
22
static int check_port(char * port) 
22
static int check_port(char * port) 
23
{
23
{
24
	long long ret = strtol(port,NULL,10);
24
	long long ret = 0;
25
	errno = 0;
26
	ret = strtol(port,NULL,10);
25
	if ((ret<0) || (ret>32767)) return -1;
27
	if ((ret<0) || (ret>32767)) return -1;
26
	if (errno) {
28
	if (errno) {
27
		printf("port error\n");
29
		printf("port error\n");

Return to bug 182046