Revision 8fed9f23

View differences:

ml.c
51 51
#include <errno.h>
52 52
#include <time.h>
53 53
#include <math.h>
54
#include <assert.h>
55

  
54 56
#include "msg_types.h"
55 57
#include "util/udpSocket.h"
56 58
#include "util/stun.h"
......
1879 1881

  
1880 1882
	char internal_addr[INET_ADDRSTRLEN];
1881 1883
	char external_addr[INET_ADDRSTRLEN];
1884

  
1885
	assert(socketID);
1886

  
1882 1887
	inet_ntop(AF_INET, &(socketID->internal_addr.udpaddr.sin_addr.s_addr), internal_addr, INET_ADDRSTRLEN);
1883 1888
	inet_ntop(AF_INET, &(socketID->external_addr.udpaddr.sin_addr.s_addr), external_addr, INET_ADDRSTRLEN);
1884 1889

  
......
1975 1980
}
1976 1981

  
1977 1982
int mlCompareSocketIDs(socketID_handle sock1, socketID_handle sock2) {
1983

  
1984
	assert(sock1 && sock2);
1985

  
1978 1986
	/*
1979 1987
	* compare internal addr
1980 1988
	*/

Also available in: Unified diff