Revision 09846603 src/libstrongswan/utils.c

b/src/libstrongswan/utils.c
64 64
	int m, i;
65 65

  
66 66
	/* byte wise XOR until dst aligned */
67
	for (i = 0; (uintptr_t)&dst[i] % sizeof(long); i++)
67
	for (i = 0; (uintptr_t)&dst[i] % sizeof(long) && i < n; i++)
68 68
	{
69 69
		dst[i] ^= src[i];
70 70
	}

Also available in: Unified diff