Skip to content

Commit

Permalink
Make ttl struct member discovery backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
miekg committed Mar 22, 2013
1 parent ee742e1 commit e0e6e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct ub_result *new_ub_result() {
}
int ub_ttl(struct ub_result *r) {
int *p;
p = (int*) ((unsigned char*)r + sizeof(*r) - sizeof(int));
p = (int*) ((unsigned char*)r + sizeof(*r) - 2*sizeof(int));
return (int)*p;
}
*/
Expand Down

0 comments on commit e0e6e23

Please sign in to comment.