diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta/recipes-connectivity/libnss-mdns/files/alignment-fix.patch | |
download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-connectivity/libnss-mdns/files/alignment-fix.patch')
-rw-r--r-- | meta/recipes-connectivity/libnss-mdns/files/alignment-fix.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/libnss-mdns/files/alignment-fix.patch b/meta/recipes-connectivity/libnss-mdns/files/alignment-fix.patch new file mode 100644 index 0000000000..70de305bac --- /dev/null +++ b/meta/recipes-connectivity/libnss-mdns/files/alignment-fix.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | --- nss-mdns-0.6/src/nss.c.orig 2005-09-25 17:27:51 +0200 | ||
4 | +++ nss-mdns-0.6/src/nss.c 2005-09-25 17:28:55 +0200 | ||
5 | @@ -456,6 +456,8 @@ | ||
6 | result->h_addrtype = af; | ||
7 | result->h_length = address_length; | ||
8 | |||
9 | + idx+=(sizeof(char*)-idx%sizeof(char*)); /* Align on 32 bit boundary */ | ||
10 | + | ||
11 | /* Check if there's enough space for the addresses */ | ||
12 | if (buflen < idx+u.data_len+sizeof(char*)*(u.count+1)) { | ||
13 | *errnop = ERANGE; | ||